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.
Contents |
---|
Built With |
Setup Instructions & Getting Started |
Testing |
Authors |
License |
- Ruby 2.7.2
- Rails 6.0.3.4
- SQLite 3.8.0
-
- Copy the git link
https://github.com/rloterh/MicroReddit.git
of this project
- Copy the git link
-
- In your terminal run the command
git clone https://github.com/rloterh/MicroReddit.git
- In your terminal run the command
-
- Run the command
cd MicroReddit
to navigate to the cloned project directory
- Run the command
-
- Run the command
bundle install
to install dependencies
- Run the command
-
- Run the command
rails db:create
to create database
- Run the command
-
- Run the command
rails db:migrate
to configure database schema
- Run the command
-
- Run the command rails console
-
- Setup temporally isntance of the User, Post or Comment to test values and associations
NB: Before running test ensure rubocop
andrspec
gems are installed
-
- Go to the terminal (directory pointing to the root of the project)
-
- Run the command
rubocop
- Run the command
-
- Click on the check button to validate
-
- All validations should pass, when no error message is displayed in the terminal
-
- Go to the terminal (directory pointing to the root of the project)
-
- Run the command
rspec
- Run the command
-
- 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)
- To run test cases individually run the command
-
- All test cases passes, when no error message is shown in the terminal
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a โญ๏ธ if you like this project!