A Django-based REST API for library management, using Python and PostgreSQL. Ideal for integrating or developing a library system with a scalable backend.
- If you develop the library project and you need a REST API. And you don't want to spend your time on the Back-end. This project is for you because it's easy to understand and useful.
- If your library application involves managing various models such as book checkouts, user information, and reviews, a REST API is an ideal solution for these functionalities. REST APIs effectively handle such data management, enhancing the scalability and flexibility of your application.
- Contains user list and detail end-point.
- ....../api/users/
- ....../api/users/int:pk
- Contains review list and detail end-point.
- ....../api/review/
- ....../api/review/int:pk/
- Contains do review end-point.
- This end-point alowed only reviewer and admin person editting and deleting
- ....../api/review/int:book_pk/make_review/
- Contains book list and detail end-point.
- ....../api/books/
- ....../api/books/int:pk
Whether you are a user or not, you have the authority to 'SAFE_METHODS' except for commenting. For other methods, the user must log in and the user cannot change the comment if it is not his/her own comment.
-
Download the repository either via the interface or the terminal.
-
Navigate to the project directory.
-
Create and activate your virtual environment:
-
For Windows:
python -m venv myenv myenv\Scripts\activate
-
For macOS and Linux:
python3 -m venv myenv source myenv/bin/activate
-
-
Install the dependencies:
pip install -r requirements.txt
-
Than we need to PostgreSQL Database:
- So you must download PostgreSQL and create Database.
-
Perform migration operations:
-
For Windows:
python manage.py makemigrations python manage.py migrate
-
For macOS and Linux:
python3 manage.py makemigrations python3 manage.py migrate
-
-
Run the project:
-
For Windows:
python manage.py runserver
-
For macOS and Linux:
python3 manage.py runserver
-