This project is a library system built with Django and Django Rest Framework (DRF). It provides an API for managing users, books, and book borrowing, and integrates with Stripe for rental and fine payments.
- User management (registration, authentication)
- Book management (CRUD operations)
- Book borrowing system
- Integration with Stripe for rental payments and overdue fines
- Support for periodic payments and reminders
- Task queuing with Django Q
- Python 3.12
- Django 5.1
- Django Rest Framework (DRF)
- Django Q (for task processing)
- Stripe API (for payments)
Clone the project from the repository:
git clone https://github.com/your-username/your-repo.git
cd your-repoCreate a virtual environment and install dependencies:
python3 -m venv .venv
source .venv/bin/activate # Linux/Mac
.venv\Scripts\activate # Windows
pip install -r requirements.txtpython manage.py migrateTo enable payments with Stripe payments and Telegram notifications, edit .env.sample and rename ot into .env:
To start the development server:
python manage.py runserverTo run the project using Docker, execute the following command:
docker-compose up --buildAPI Endpoints The main API endpoints include:
api/users/ — User management
api/books/ — Book management
api/borrowings/ — Book
api/payments/ — Payments