The Blog app is a classic example of a blog website. It is a functional website that will show the list of posts and empower readers to interact with them by adding comments and liking posts.
Projects list I will be building the Blog app for three weeks. Here is the list of projects that will guide me through the steps described above.
- Project 1: Setup and controllers.
- Project 2: Controllers specs.
- Project 3: Creating a data model.
- Project 4: Processing data in models.
- Project 5: Views.
- Project 6: Forms
- Project 7: Validations, Model specs, and n+1 problems.
- Project 8: Add Devise.
- Project 9: Add authorization rules.
- Project 10: Integration specs for Views.
- Project 11: Add API endpoints.
- Exercise: API documentation.
- Run
bundle install
to get the dependecies - Run
rails s
to start the server - Open
https://localhost:3000
in your browser - to run test
bundle exec rspec
Diffult (run all spec files):
bundle exec rspec
Run all spec files in the Spec
folder:
bundle exec rspec spec
Run all spec files in a single directory:
bundle exec rspec spec/models
Run a single spec file:
bundle exec rspec spec/views/login_page_spec.rb
Run a single example from a spec file(by line number):
bundle exec rspec spec/controllers/users_controller_spec.rb:8
See all options for running specs:
bundle exec rspec --help
👤 David Owuor Ouma
👤 Zahra Aershia
- GitHub: @ZahraArshia
- Twitter: @ZahraArshia
- LinkedIn: @ZahraArshia
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