Skip to content

umitarat-dev/stock-management-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“Š Stock Management Rest API

A professional, production-ready REST API for modern inventory tracking and warehouse management systems πŸš€

Interactive Swagger Documentation

πŸ“š Navigation

πŸš€ Live API Documentation

The API is fully documented and interactive. You can explore endpoints using Swagger or ReDoc.

Pro Tip: In production (ENV=prod), root access is automatically redirected to the Swagger documentation for an optimal developer experience.

πŸ“¦ Key Features

  • 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.atomic for critical stock updates to prevent race conditions.
  • Advanced Filtering: Integration with django-filter for 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).

πŸ› οΈ Built With

βš™οΈ Setup & Installation

Option 1: Local Development (macOS/Linux/Windows)

1. Clone & Environment:

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

2. Configuration:

  • 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,localhost

3. Install & Run:

pip install -r requirements.txt
python manage.py migrate
python manage.py runserver

Option 2: Production (PythonAnywhere Deployment)

  • The project is optimized for PythonAnywhere with dynamic ALLOWED_HOSTS and decoupled settings.

πŸ“Š Data Model (ERD)

  • The application follows a highly relational structure designed for data integrity:

πŸ“¬ Contact Information

I am open to discussing backend architecture, API design, and professional collaborations.

About

πŸ“Š A professional, production-ready Stock Management REST API built with Django 5.2 and DRF. Features Role-Based Access Control (RBAC), atomic transactions for data integrity, and automated Swagger/ReDoc documentation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages