Coder Social home page Coder Social logo

microreddit's Introduction

MicroReddit - RoR Active Records (Microverse Ruby on Rails Module)

Microverse

Description

Micro Reddit is a console based application that demonstrate the use of Rails ActiveRecord and mimics core data models of Reddit. It involves 3 main models: User, Posts and Comments and linked via Association Relationship. The specification for this project is a part of The Odin Project.

ReadMe Directory ๐Ÿ“™

Contents
Built With
Setup Instructions & Getting Started
Testing
Authors
License

Built With

  • Ruby 2.7.2
  • Rails 6.0.3.4
  • SQLite 3.8.0

Setup Instructions & Getting Started

    • Copy the git link https://github.com/rloterh/MicroReddit.git of this project
    • In your terminal run the command git clone https://github.com/rloterh/MicroReddit.git
    • Run the command cd MicroReddit to navigate to the cloned project directory
    • Run the command bundle install to install dependencies
    • Run the command rails db:create to create database
    • Run the command rails db:migrate to configure database schema
    • Run the command rails console
    • Setup temporally isntance of the User, Post or Comment to test values and associations

Testing

NB: Before running test ensure rubocop andrspec gems are installed

Validating Ruby Syntax & Coding Standard

    • Go to the terminal (directory pointing to the root of the project)
    • Run the command rubocop
    • Click on the check button to validate
    • All validations should pass, when no error message is displayed in the terminal

Running Test Cases

    • Go to the terminal (directory pointing to the root of the project)
    • Run the command rspec
    • To run test cases individually run the command rpsec relative_path_of_testfile
      (replace rerelative_path_of_testfile with the actual relative path to the test file you want to run)
    • All test cases passes, when no error message is shown in the terminal

Authors

๐Ÿ‘จโ€๐Ÿ’ป Robert Loterh

GitHub
LINKEDIN
EMAIL
TWITTER

๐Ÿ‘จโ€๐Ÿ’ป Akintoye Olamide

GitHub
LINKEDIN
TWITTER

๐Ÿค Contributing

Contributions, issues and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a โญ๏ธ if you like this project!

Acknowledgments

License

Cocoapods

microreddit's People

Contributors

rloterh avatar akintoyeolamide avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.