Costino is a simple, easy-to-use blogging platform which allows users to create and publish their own blog posts. Users can also read posts from other users and give likes/comments.
- Ruby on Rails
- PostgreSQL
- Create and manage blog posts
- Read posts by other users
- Interact by giving likes/comments
- User authentication and authorization
- Install CanCanCan in your project.
- Add a role column to the users table.
- A user can delete a post if it is theirs or if they have an admin role.
- A user can delete a comment if it is theirs or if they have an admin role.
- Create an API endpoint to list all posts for a user.
- Create an API endpoint to list all comments for a user's post.
- Create an API endpoint to add a comment to a post. Remember that the owner of the comment is the user that makes it; it should not be set by passing a parameter.
- Our API endpoints should receive JSON and respond JSON as well.
To run this project locally, you'll need to follow these steps.
Make sure you have the following installed on your machine:
Clone this repository to your desired folder.
git clone [email protected]:mohisa302/Blog-app.git .
cd Blogify
Install the required gems with:
bundle install
Create the databases and run migrations with:
rails db:create
rails db:migrate
To run the development server, execute the following command:
rails server
To run tests, run the following command:
rspec spec
👤 Mohi
- GitHub: @mohisa302
- Twitter: @Kholochelam
- LinkedIn: LinkedIn
👤 HABASM
- Add tests
- Create API endpoints
- Implement authentication
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
If you like this project, please consider giving it a ⭐.
I would like to thank all code reviewers for making this project better.
This project is MIT licensed.