This repository contains all necessary training methods, datasets, and works related to the development of Intelligent Demand Forecasting for Supply Chain Management.
Before running the service, you need to set up a Python virtual environment:
On Windows:
# Create virtual environment
python -m venv .venv
# Activate virtual environment
.venv\Scripts\activateOn macOS/Linux:
# Create virtual environment
python3 -m venv .venv
# Activate virtual environment (or Git Bash)
source .venv/Scripts/activate# Install requirements
cd forecasting_service
pip install -r requirements.txtThe project includes a Makefile with the following commands to manage the Django backend service:
- Ensure that you are in the project's root directory where the
Makefileis located.
# Start the Django server with migrations
make run-serverThis will:
- Create migrations for the forecastApp
- Apply migrations to the database
- Start the Django server at http://localhost:8000/
make shellmake testmake clear-migrationsThis will delete all migration files (except __init__.py), then recreate and apply migrations.
make run-server-fakeUse this when you need to run the server with --fake-initial flag for migrations.