Skip to content

asmaamuhamed20/library-system

Repository files navigation

Library System

The Library System is a backend application that allows users to manage books, borrow and return them, and leave reviews. It includes features like user authentication, book management, and a review system.

Cloning the Repository

To clone this repository and run the application locally, follow these steps:

  1. Clone the Repository:

    git clone https://github.com/your-username/library-system.git

  2. Navigate to the Project Directory: cd library-system

  3. Install Dependencies: bundle install

  4. Set Up the Database: rails db:create rails db:migrate

5.Start the Server: rails server

The application will be available at http://localhost:3000.

I used in this application

  • rails: The Rails framework for building the application.
  • jwt: For handling JSON Web Tokens (JWT) for authentication.
  • faker: For generating test data
  • factory_bot_rails: For setting up factories for tests.
  • rspec-rails: For writing and running tests.
  • shoulda-matchers: For additional matchers to test models.
  • rswag: For API documentation and integration testing.

How to Use the Application User Registration Register a New User:

Send a POST request to /api/v1/users with the following JSON body: { "user": { "email": "[email protected]", "password": "password", "password_confirmation": "password" } }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published