- 📖 About the Project
- 💻 Getting Started
- 👥 Authors
- 🔭 Future Features
- 🤝 Contributing
- ⭐️ Show your support
- 🙏 Acknowledgements
- 📝 License
The Blog app is a classic example of a blog website. I have created a fully functional website that will show the list of posts and empower readers to interact with them by adding comments and liking posts.
In this section of project, I have used migration files to build your schema.
In this section of project, I have set up models. To start with, we have tables for Users, Posts, Comments, and Likes, which means we need a model for each one. We've already set the foreign key in the table schema but be sure to write it here too!
In this section of project, I have added validations to the models and create specs for them.
In this section of project, I have created all controllers and views for your Blog app. I didn't process any data yet, I have also add simple placeholders for views with plain HTML.
In this section of project, I have set up tests on the controllers recently added to the Blog app.
In this section of project, I have added the Views associated with the Models and Controllers which I have already created for this Blog App.
In this section of project, I have added the forms for create new post and add comments in the rails Blog App.
In this section of project, I have create integration tests for all of the views used in the project. Be sure to cover the user stories (or user workflows) that you want users to experience while taking into consideration the possible errors your users may cause.
In this section of project, In this project, I have added the devise gem to the app and use it for the registration and login of users.
In this section of project, We have added authorization to the app using CanCanCan.
In this section of project, We have added some API endpoints to the Blog app. This will allow this app to be used in different ways, rather than just through your site - for example, a mobile app or a CLI application.
BackEnd
Test
Database
- Creating a data model.
- Validations and Model specs.
- Processing data in models.
- Setup and controllers.
- Controllers specs.
- Views.
- Forms.
- Integration specs for Views and fixing n+1 problems.
- Add Devise.
- Add authorization rules.
- Add API endpoints.
- API documentation.
To get a local copy up and running, follow these steps.
In order to run this project you need:
- Ruby on Rail Knowledge
- Object Oriented Programming(OOP) Knowledge
- Vs Code
- Github / Git Bash
- install ruby
sudo apt-get install ruby-full
-
install rails
gem install rails
-
Install gems of rails
bundle install
-
install postgresql
sudo apt-get install postgresql postgresql-contrib libpq-dev
Clone this repository to your desired folder:
git clone git@github.com:MudasirSherwani/Rails-Blog-App.git
cd Rails-Blog-App
Prepare the database:
- create database
rails db:create
rails db:migrate
To run the project, execute the following command:
rails server
To run tests, run the following command:
Rspec
👤 Mudasir Sherwani
- GitHub: @Mudasir Sherwani
- Twitter: @Mudasir Sherwani
- LinkedIn: @Mudasir Sherwani
👤 Pierre Celestin Moussa
- GitHub:@Piercel2022 Pierre
- Twitter:@pier_celestin Pierre
- LinkedIn: @pierrecelestinmax Pierre
- REST Full API
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
If you like this project give me a star.
I would like to thanks Microverse to guide me to complete this project.
This project is MIT licensed.