This is a junior version of Reddit. This project contains build the data structures necessary to support link submissions and commenting. It does not have any front-end, thus there is no live version for this app. However the user can use the Rails console to play around with models without the overhead of making HTTP requests and involving controllers or views.
- Ruby
- Ruby On Rails
To get a local copy up and running follow these simple example steps:
- To get a local copy of the project open terminal
- run
git clone https://github.com/uzairali19/micro-reddit.git
- Then run
cd micro-reddit
- To use the app on local machine make sure you are on the root directory
micro-reddit
- Open terminal and run
bundle install
to install all the dependecies then runrails console
- Now you can play around with relational tables and see how it works.
- To register a new user
<your-varibale-name> = User.new(your_attributes_here)
- To save the user
<your-varibale-name>.save
- To register a new post
<your-varibale-name> = Post.new(your_attributes_here)
- To save the post
<your-varibale-name>.save
- To register a new comment
<your-varibale-name> = Comment.new(your_attributes_here)
- To save the comment
<your-varibale-name>.save
๐ค Uzair Ali
- GitHub: @githubhandle
- Twitter: @twitterhandle
- LinkedIn: LinkedIn
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a โญ๏ธ if you like this project!
- This project and details are available on the Odin Project, Be sure to check that out.
This project is MIT licensed. Please contact issues link for contributions.