A professional, production-ready REST API for modern inventory tracking and warehouse management systems π
- π Live API Documentation
- π¦ Key Features
- π οΈ Built With
- βοΈ Setup & Installation
- π Data Model (ERD)
- π¬ Contact Information
The API is fully documented and interactive. You can explore endpoints using Swagger or ReDoc.
- Swagger UI: https://umit8103.pythonanywhere.com/swagger/
- ReDoc: https://umit8103.pythonanywhere.com/redoc/
- Postman Collection: Explore on Postman
Pro Tip: In production (
ENV=prod), root access is automatically redirected to the Swagger documentation for an optimal developer experience.
- Inventory & Warehouse Tracking: Comprehensive CRUD operations for managing brands, products, and categories.
- Role-Based Access Control (RBAC): Granular permissions for Superusers, Staff, and Regular Users using
dj-rest-auth. - Data Integrity: Implementation of
transaction.atomicfor critical stock updates to prevent race conditions. - Advanced Filtering: Integration with
django-filterfor precise querying across large datasets. - Professional Logging & Debugging: Configured system logs and Django Debug Toolbar for high-performance maintenance.
- Environment-Aware Config: Hybrid setup optimized for SQLite (Local) and PostgreSQL (Production).
- Framework: Django 5.2 & Django REST Framework
- Authentication: dj-rest-auth (JWT Ready)
- Database: PostgreSQL (Production) & SQLite (Development)
- Tools: drf-yasg (Swagger/Redoc), Django Debug Toolbar
git clone [https://github.com/umitarat-dev/stock-management-rest-api.git](https://github.com/umitarat-dev/stock-management-rest-api.git)
cd stock-management-rest-api
python -m venv env
source env/bin/activate # Windows: env\Scripts\activate- Create a .env file in the root directory:
SECRET_KEY=your_secret_key
ENV=dev # Switch to 'prod' for PostgreSQL
DEBUG=True
ALLOWED_HOSTS=127.0.0.1,localhostpip install -r requirements.txt
python manage.py migrate
python manage.py runserver- The project is optimized for PythonAnywhere with dynamic ALLOWED_HOSTS and decoupled settings.
- The application follows a highly relational structure designed for data integrity:
I am open to discussing backend architecture, API design, and professional collaborations.
- LinkedIn: linkedin.com/in/umit-arat
- Email: umitarat8098@gmail.com
- GitHub: github.com/umitarat-dev (Current Workspace)