Creating a Micro-Reddit with only the Model and Database section... Play with it in the console!!!
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
(Click on the image to play with the code! See instructions in Usage)
In this project we developed a simplified data-model version of reddit that includes the following models:
- User model that validates the presence of password and a user name
- Post model that validates presence of title and body and is associated to the User
- Comment model that validates the presence of a comment and is associated to the User that is author of the comment and the Post it is refering to
- If you click on the link provided you can test the validations and create your own users, posts and comments
Here is the diagram to represent the relationships of the models:
The project was developed using the following technologies:
Click on the image at the top or in the following link,
- Click on the terminal and type
bundle
and hit enter to begin the instalations of the necessary gems - Click on the terminal and type
yarn install --check-files
and hit enter to update yarn - Click on the terminal and type
rails db:migrate
and hit enter to create a local database with the predefined models - Click on the terminal and type
rails c
and hit enter to start interacting with the database
Now you can test in the console!!
To quit the console just type exit
See the open issues for a list of proposed features (and known issues).
Project Link: https://github.com/EdCrux/micro-reddit-rails-models
Kitzia Paola Vidal Marroquin - Github user: kitpao
kitpao91@gmail.com | Portfolio | LinkedIn | Twitter
Jesus Eduardo Cruz Valdez - EdCrux