In this project, I built a community blog magazine specialized in plants, ecological farming, and home gardening. This is the Capstone project for the end of Ruby On Rails Module in Microverse curriculum.
This project was built following the specifications, and user cases given by Microverse.
Read the projects specifications
- Secure authentication system with Devise.
- Super-admin and moderator panels with Rails-admin.
- Articles creation and editing by the user.
- Like and dislike an article.
- It displays articles and categories collections ordered by priority and numbers of likes.
- It adapts the feature's display and access to the user's roles.
- It displays paginated collections.
- It avoids the N+1 Queries problem in loading.
- It uses AWS-S3 service to store images.
- Optimized code with Linters, DRY method, and the use of scopes in the models.
- About the project
- Built with
- Presentation/Demo
- Dependencies
- Linting tools:
- Data Models
- Getting started
- Run tests
- Automated Tests
- Deployment
- Author
- Contributing
- Acknowledgments
- License
-
Link to the deployed version of the project: Photosynthèse-blog
-
Video-presentation of the project Demo-video
-
Main views screenshots:
Iportant Gems and dependencies used in this web application:
Dependency | for | Development | Test | Production |
---|---|---|---|---|
Postgresql | Database | ⭐️ | ⭐️ | |
Devise | For user authentication | ⭐️ | ⭐️ | ⭐️ |
Rspec | Testing framework | ⭐️ | ||
Capybara | Features and Integration tests | ⭐️ | ||
Shoulda Matchers | Models and association tests | ⭐️ | ||
Database cleaner | Cleaning database in testing | ⭐️ | ||
rails_admin | Engine for administration | ⭐️ | ⭐️ | |
CanCanCan | Managing user roles and abilities | ⭐️ | ⭐️ | |
Figaro | Managing credentials | ⭐️ | ⭐️ | |
aws-sdk-s3 | Amazon s3 for active storage | ⭐️ | ⭐️ | |
will_paginate | Views pagination | ⭐️ | ⭐️ | |
Bullet | N+1 querries debugging | ⭐️ |
Linter | Use | Files |
---|---|---|
Rubocop | Linting Ruby errors | .rb |
Stylelint | Linting styling errors | .css .scss |
To get a local copy of the repository, please run the following commands on your terminal:
$ git clone [email protected]:CalyCherkaoui/blogging_app_ror.git
$ cd blogging_app_ror
$ git checkout development
$ bundle install --without production
$ yarn install --check-files
$ rails db:create
$ rails db:migrate
$ rails db:seed
Start server with:
$ sudo service postgresql restart
$ rails server
In your browser's adress field, type : http://localhost:3000
$ rpsec --format documentation
This web-application was deployed with Heroku
👤 Houda Cherkaoui
- Github: @CalyCherkaoui
- Twitter: @Houda59579688
- Linkedin: Houda-Cherkaoui
Contributions, issues and feature requests are welcome!
Give a ⭐️ if you like this project!
- Design based on the work of Nelson Sakwa published in Behance.net
- Hat tip to stackoverflow community.
- Hat tip to Microverse TSE for Code Review
- Hat tip to anyone whose code was used
All source codeis available jointly under the MIT License. See MIT licence for details.