daudi13 / BLOgy

The Blog app will be a classic example of a blog website. I will create a fully functional website that will show the list of posts and empower readers to interact with them by adding comments and liking posts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BLOgy

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.

image

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.

ERD diagram

Getting started

  • 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

Tests

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

Authors

πŸ‘€ David Owuor Ouma

πŸ‘€ Zahra Aershia

🀝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page

Show your support

Give a ⭐️ if you like this project!

πŸ“ License

This project is MIT licensed

About

The Blog app will be a classic example of a blog website. I will create a fully functional website that will show the list of posts and empower readers to interact with them by adding comments and liking posts

License:MIT License


Languages

Language:Ruby 70.8%Language:HTML 23.8%Language:SCSS 4.3%Language:JavaScript 1.1%