This project is part of the Smart Supply Chain Management System, focused on managing product inventory, warehouses, and stock levels.
- Python 3.12
- Django 5.2
- PostgreSQL (via Docker)
- pgAdmin (optional DB GUI)
- Makefile for simplified CLI commands
git clone https://github.com/IASSCMS/Warehouse-Management-Services.git
cd Warehouse-Management-Servicespython -m venv venv
. venv\Scripts\activate # On Windows (Git Bash)pip install -r requirements.txt- Rename
.env.exampleindatabasedir into.env
Make sure it includes:
PGADMIN_DEFAULT_EMAIL=admin@admin.com
PGADMIN_DEFAULT_PASSWORD=admin- Rename
.env.exampleinwarehouse_managmentdir into.env
Make sure it includes:
# Django
DJANGO_SECRET_KEY=your-secret-key-here
DJANGO_DEBUG=True
DJANGO_ALLOWED_HOSTS=localhost,127.0.0.1
# PostgreSQL
DATABASE_URL=make db-upmake run- Open your browser to: http://localhost:15433
- Login with:
- Email:
admin@admin.com - Password:
admin
- Email:
- Register new server:
- Right click on
Servers, thenRegister>Server... - Name:
warehouse - Get the below details from the DATABASE_URL
- Host Name/ address -
_ - Port:
_ - Username:
_ - Password:
_
- Right click on
make db-up # Start PostgreSQL (via Docker)
make db-down # Stop database container
make migrate # Run Django migrations
make db-psql # Run psql shel
make run # Start Django dev server
make db-clean # Reset database (use with caution)make createsuperuserThen access the Django admin: http://localhost:8000/admin/
make db-clean