Bookstore This project is part of a Django-based book management system(Only backend). It provides the following features:
- Add books and authors
- View inventory and filter books
- Update and delete books
- Bulk delete books
- Clone the project to your local machine:
git clone https://github.com/your_username/your_project.git
cd your_project
- Create a virtual environment and install dependencies:
python -m venv venv
source venv/bin/activate # For Linux/macOS
venv\Scripts\activate # For Windows
pip install -r requirements.txt
dependencies:
django python>3.11 croshead
- Perform database migration:
python manage.py migrate
- Run the development server:
python manage.py runserver
- Visit http://localhost:8000/ to view the project.
๐ก xxx xxx.
- Project Status
- Introduction
- Installation and Run
- Table of contents
- API Endpoints
- Models
- Thank you all!
- Add a Book
Endpoint: /add_book Method: POST
- Bulk Add Books
Endpoint: /add_books Method: POST
- View Inventory
Endpoint: /inventory Method: GET Returns information about all books.
- Filter Books
Endpoint: /filter Method: GET
- Update a Book
Endpoint: /update_book/<book_id> Method: PUT
- Delete a Book
Endpoint: /delete_book/<book_id> Method: DELETE
- Bulk Delete Books
Endpoint: /aggregate_delete Method: DELETE
- Increase data privacy, which is an important factor for sensitive data.
- Decrease data streaming, which is a fundamental condition to optimize network communication.
- Autonomous, intelligent and self-aware devices with services directly in the environment of data origin.
- Author Model
name: CharField with a maximum length of 100 characters to store the author's name. method: It returns the string representation of the Author object, which is the author's name.
- Book Model
title: CharField with a maximum length of 100 characters to store the book's title. authors: ManyToManyField linking to the Author model, allowing multiple authors for a single book. price: DecimalField to store the book's price with a maximum of 5 digits, 2 of which are after the decimal point. method: It returns the string representation of the Book object, including the book's ID and title.
Special thanks to all contributors and supporters that starred this repository.
Do you like this project? Please join us or give a โญ. This will help to attract more contributors.
Do you have an idea or found a bug? Please open an issue or start a discussion.
Contact us at
Share the project link with your network on social media.