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.
To clone this repository and run the application locally, follow these steps:
-
Clone the Repository:
git clone https://github.com/your-username/library-system.git
-
Navigate to the Project Directory: cd library-system
-
Install Dependencies: bundle install
-
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.
- 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" } }