A Django-based Inventory Management System (SGE - Sistema de Gestão de Estoque) that allows you to manage products, suppliers, and stock movements (inflows/outflows), providing a dashboard with metrics and charts. It also includes an optional AI insights module to generate short daily inventory/sales recommendations based on system data.
Full project documentation is available at: https://gabrieldlobo.github.io/02-Inventory-Management-System/
mkdocs serve -a 127.0.0.1:8001Open: http://127.0.0.1:8001/
Edit markdown pages in docs/ and navigation in mkdocs.yml.
mkdocs gh-deploy --clean-
Authentication
- Login/Logout pages
- Permission-based access to modules and dashboard sections
-
Inventory domain modules
- Suppliers
- Brands
- Categories
- Products
-
Stock movements
- Inflows: register incoming stock (purchases/entries)
- Outflows: register outgoing stock (sales/dispatch)
-
Dashboard
- Inventory metrics
- Sales metrics
- Charts and daily aggregations
-
AI Insights (optional)
- Uses OpenAI to generate short, direct insights about replenishment and sales/outflows
- Stores generated insights and shows them in the dashboard
- Python / Django
- Django Templates (HTML)
- TailwindCSS (via CDN)
- (Optional) OpenAI API
Common Django apps you may find in this repository:
app/— Django project configuration (settings/urls) and dashboard viewsproducts/,categories/,brands/,suppliers/— master datainflows/,outflows/— stock movementsauthentication/— API/auth related endpoints (mounted under/api/v1/)ai/— AI prompts + agent logic that produces inventory insights
GET /login/— LoginPOST /login/— Login submitGET /logout/— LogoutGET /home/— Dashboard/api/v1/— API (authentication module)
Other routes depend on each module (
products,inflows,outflows, etc.).
git clone https://github.com/GabrielDLobo/02-Inventory-Management-System.git
cd 02-Inventory-Management-System
python -m venv venv
# Linux/Mac:
source venv/bin/activate
# Windows:
# venv\Scripts\activateIf the repository has a requirements.txt:
pip install -r requirements.txtIf not, install the minimum:
pip install django python-decoupleCreate a .env file if your settings expect it. For AI features, set:
OPENAI_API_KEYOPENAI_MODEL(e.g.gpt-4o-mini)
If you don't want AI features, you can keep them unset and disable the related execution in your environment.
python manage.py migrate
python manage.py createsuperuserpython manage.py runserverOpen: http://127.0.0.1:8000/
This repository is the core system where stock and sales are recorded.
The companion repository 03-Webhooks-Inventory-Management-System can be used as an integration/notification service to receive events (like a new sale/outflow) and send notifications (email + messaging).
A common setup is:
- A sale is created in this system (or in another system).
- An event is posted to the Webhooks service.
- Notifications are sent to administrators or stakeholders.
No license file is included by default. Add a license if you plan to distribute or use this project commercially.














