Prerequisites
For local development, it is recommended that you run containerized services with VS Code Dev Containers or Docker Compose.
Dev Containers
-
Install VS Code with dev container support.
-
Open the project in VS Code, then run
Dev Containers: Reopen in Containerfrom the Command Palette (Ctrl+Shift+P). -
Run services with the
Django + Celery + ViteRun Configuration in the VS CodeRun and Debugpanel. -
Run tests either via command line with
tox(see Testing) or in the VS CodeTestingpanel. -
Rebuild after any changes to the Dockerfile, Docker Compose files, or
devcontainer.json. RunDev Containers: Rebuild Containerfrom the Command Palette (Ctrl+Shift+P). -
Manage dependencies with
uv. Sync dependencies withuv sync --all-extras --all-groups.
Docker Compose
Run services with docker compose up, using Ctrl+C to stop them gracefully. Or, to run them in the background, use docker compose up -d and docker compose stop to stop them gracefully.
To run celery worker with GPU access, use the gpu profile:
docker compose --profile gpu up --scale celery=0
Note
GPU mode requires NVIDIA drivers and nvidia-docker runtime.
To run commands in a service container, use docker compose run:
docker compose run --rm django ./manage.py migrate
docker compose run --rm django uv run tox
Initialization
Run the following commands in the Django context (VS Code terminal if using Dev Containers, Django container if using docker compose).
./manage.py migrate
./manage.py createsuperuser
Access Points
Log in using the credentials you created with createsuperuser.
| Service | URL |
|---|---|
| User Interface | http://localhost:8080/ |
| Admin Panel | http://localhost:8000/admin/ |
| API Documentation | http://localhost:8000/api/docs/swagger/ |
Load Sample Data (Optional)
The ingest command loads datasets, charts, and project configuration from an ingestion file:
./manage.py ingest {JSON_FILE}
Available ingest options (paths relative to sample_data/):
boston_floods/data.jsonmultiframe_test.jsonla_wildfires.jsonnew_york_energy/data.json
Testing
Run test suite with tox. tox is installed automatically with the dev package extra. Pass an environment name to perform specific tests.
tox -e lint
tox -e format
tox -e test
tox -e type
tox -e check-migrations