Blog app is a fully functional website that will show the list of posts and empower readers to interact with them by adding comments and liking posts
- Create routes.
- Create action in the correct controller.
- Create a view file.
- Add RSpec as a gem.
- Create a Request spec file for controllers.
- Test each action performed.
- Build project schema.
- Create and run migration files.
- Add table and column names based on ERD diagram.
- Create model classes for all entities as shown in the ERD diagram.
- Set up associations between models.
- Your models should include:
- A method that returns the 3 most recent posts for a given user.
- A method that updates the posts counter for a user.
- A method which returns the 5 most recent comments for a given post.
- A method that updates the comments counter for a post.
- A method that updates the likes counter for a post.
- Make current user data available to all controllers.
- Create a method called current_user in your ApplicationController.
- A current_user method should return the first user from a database.
- Ruby
- Ruby on rails
To get a local copy up and running:
-
Clone this repo with:
git clone https://github.com/sneeu-leeu/Blog-SPA
-
Navigate to the folder/directory
cd Blog-SPA
- After cloning first run bundle install
- Then run rails webpacker:install to install webpack dependencies
- Run bundle install again
- Finally, run bundle exec rspec to see the tests pass
๐ค Stephan Annandale
- GitHub: @stephan
- Twitter: @Stephan
- LinkedIn: Stephan Annandale
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a โญ๏ธ if you like this project!
This project is MIT licensed.