- In this project we:
- Create 3 models User, Post, Comment
- We created associations
- Also made validations
- Ruby on Rails
- Ruby ~> [2.7.1]
- Ruby on Rails ~> [6.0.3.4]
- Bundler ~> [2.1.4]
You can simply run the following command into your own terminal to clone the repository https://github.com/abmAsadullah/micro-reddit.git
.
After you clone the repo, make sure you're in the root directory of the project. Now you should run bundle install
to install all the required dependencies.
- Run
rails console
. - If you want go see all users
User.all
- Create new user
User.create(username:REQUIRED, email:REQUIRED)
- Create new post
Post.create(title:REQUIRED, body:REQUIRED)
- Create new comment
Comment.create(body:REQUIRED, user_id, post_id)
👤 David Leonardo Castillo Riaño
- GitHub: @Fanger53
- Twitter: @DavidLe97005129
- LinkedIn: david-castillo-61ba10b8
👤 A B M Asadullah
- GitHub: @abmAsadullah
- Twitter: @abmAsadullah
- LinkedIn: abmAsadullah
Contributions, issues and feature requests are welcome! Start by:
- Forking the project
- Cloning the project to your local machine
cd
into the project directory- Run
git checkout -b your-branch-name
- Make your contributions
- Push your branch up to your forked repository
- Open a Pull Request with a detailed description to the development branch of the original project for a review
Give a ⭐️ if you like this project