Git Product home page Git Product logo

seifhassan89 / blog Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 38 KB

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

Ruby 94.46% HTML 0.41% Batchfile 5.13%
activerecord api api-rest authentication authorization blog jwt-authentication mysql mysql-database postman restful-api ruby ruby-on-rails webapi rails

blog's Introduction

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.

blog's People

Contributors

seifhassan89 avatar

Stargazers

Ahmed Ibrahim avatar Gopi Krishna M avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.