Skip to content

seifhassan89/Blog

Repository files navigation

Blog Management Web API

This is a simple Blog WebApi that allows users to view posts and comments and interacte with each other, while Admin can manage all posts and comments and view them. The project is built using Ruby On Rails, ActiveRecord and mysql2 and jwt and bcrypt gems.

Features

  • CRUD operations for Posts.
  • CRUD operations for Comments.
  • CRUD operations for Users.
  • CRUD operations for Roles.
  • Authentication and Authorization operations for all Users.

Technologies Used

  • Ruby
  • Ruby on rails
  • mysql2 database
  • jwt
  • bcrypt

Getting Started

To get started with this project, follow these steps:

Installing

  1. Clone the repository to your local machine.
git clone https://github.com/seifhassan89/Blog
  1. Install Ruby and Ruby on Rails if you haven't already
gem install rails -v 5.0.1
  1. Run bundle install to install all required gems.
bundle install

Database Connection

1.to create the database run:

db:create

2.to run the database migrations run:

db:migrate

Run the application

  1. Here is command to run your application:
rails s

You should now be able to access the application at http://localhost:3000.

Usage

The API endpoints can be tested using a tool such as Postman. The following endpoints are available:

image image image

Contributing

Contributions are welcome! If you'd like to contribute to this project, please follow these steps:

  1. Fork the repository.
  2. Create a new feature branch.
  3. Make your changes.
  4. Create a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Ruby On Rails WebAPI project that allows User to view Blog posts and comments, register and login, while Admin can manage users' posts and comments

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published