This project let us practice creating models and their associations in order to get a full understanding of Active Record. The project itself is a CLI (Command Line Interface) of the Reddit blog.
- Ruby
- Rails
- SQLite3
- Node.js
- Yarn
All actions are executed from the Ruby Console Users can be created as long as some validations are committed (Name must be at least 5 characters long and the Nickname must be unique in the whole site) Each User can post an unlimited amount of posts. Every Post has a Title (at least 2 chars long and 50 chars maximum) and a Body (at least 2 chars long and 200 chars maximum) Each Post can have an unlimited amount of Comments (Each comment must be at least 2 chars long)
- Open your terminal - Windows:
Win + R
, then typecmd
| Mac:Command + space
, then typeTerminal
- Navigate to a directory of your choosing using the
cd
command - Run this command in your OS terminal:
git clone https://github.com/MiguelArgentina/microverse-micro-reddit.git
to get a copy of the project. - Navigate to the project's directory using the
cd
command. - Execute
rails console
to load the development environment. - Run
User.all
to see all the users in the database.
Follow the instructions on Building with Active Record
👤 Miguel Ricardo Gomez
- GitHub: @MiguelArgentina
- Twitter: @Qete_arg
- LinkedIn: Miguel Ricardo Gomez
👤 Ubong George
- GitHub: @george-swift
- Twitter: @__pragmaticdev
Give a ⭐️ if you like this project!
This is available as open source under the terms of the MIT License.