Web application developed with React JS and Django REST framework for library management.
The API has the following features:
1. Authentication.
2. Book Management
3. Client Management
4. Loan management
This project was developed using the venv virtual environment, I recommend that you do the same to exult the project, to reduce the chances of error.
Run the command pip install -r requirements.txt in your shell to install the required dependencies.
This project uses SQLite, to create the database and tables just run the following commands:
python manage.py makemigrations
python manage.py migrate
If the previous steps were successful, just run the command python manage.py runserver and open the URL http://127.0.0.1:8000/ in your browser, opening this URL will display the API documentation in your browser with Swagger. You can also access documentation with Redoc at http://127.0.0.1:8000/redoc/
All functions for managing books, customers and loans require authentication.
When logging in, the authentication token will be returned, which must be sent from the request header as follows:
Authentication: Bearer token
- User login
- User registration
- User data return
- Editing user data
- User account deletion
- Book registration.
- Editing book.
- Deleting book.
- Search by book.
- Listing of books.
- Register customer.
- Editing customer.
- Deleting customer.
- Search by customer.
- Listing of customers.
- Register loan.
- Editing loan.
- Deleting loan.
- Search by loan.
- Listing of loan.