This is a project done with the aim of understanding how ActiveRecord works in rails.
-
User model
-
Post model
-
Comment model
-
User model has many posts
-
User model has many comments
-
Post model has many comment
-
Post model belongs to user
-
Comment model belongs to user
-
Comment model belongs to post
- Get a local copy of this repo
Open a terminal and run:
git clone [email protected]:OlawaleJoseph/micro-reddit.gitt
- Open a terminal and run
bunle install
- Run
yarn install --check-files
- Run
rails c
- Create the following Entities to test
- User (name: string)
- Post (body: string)
- Comment (body: string)
๐ค James Kiptubei
- Github: @kiptubei
- Linkedin: james-kiptubei
๐ค Adedeko Olawale
- Github: @OlawaleJoseph
- Twitter: @javanode123
- Linkedin: olawale-adedeko
Contributions, issues and feature requests are welcome! Feel free to check the issues page.