- Prereqs: Docker and Docker Compose installed; optional:
.envwithDB_PASSWORD. - Services: PostgreSQL (
db), Redis (redis), Django (backend), Celery (celery_worker,celery_beat), Vite React (frontend).
docker compose up --build backend redis db frontend- Backend:
http://localhost:8000 - Frontend (Vite dev):
http://localhost:3000
- Frontend uses Vite dev server bound to
0.0.0.0on port3000(seefrontend/Dockerfile). - Nginx is for production and expects a build at
frontend/build; skip it in dev. - Backend uses
config.settings.developmentand connects todbandrediscontainers.
# Start specific services
docker compose up --build backend frontend
# Rebuild frontend only
docker compose build frontend && docker compose up frontend
# Tear down
docker compose down -vAlgorithmic trading platform scaffold combining Django backend, React frontend, and a trading engine.
This repository provides a 12-week curriculum scaffold to build a production-ready trading platform. It includes:
- Django backend with REST API, Celery tasks, Channels (WebSockets), and admin UI.
- React frontend with MUI-based layout and Redux state management.
- Trading engine modules: data loader, signals, backtester, risk manager, and broker client.
- Docker and docker-compose setup for local development.
- GitHub Actions CI pipeline for tests, linting, and builds.
-
Copy
.env.exampleto.envand fill in the secrets. -
Build and start containers:
make build
make up- Run migrations and create superuser:
make migrate
make createsuperuser- Frontend:
http://localhost:3000Backend:http://localhost:8000Admin:http://localhost:8000/admin
backend/- Django project and appsfrontend/- React apptrading_engine/- Core trading modules (data loader, signals, backtester, risk manager, broker client)data/- Local storage for market datalogs/- Logs for services.github/workflows- CI/CD configuration
See the prompt for the detailed 12-week curriculum. Implementations in trading_engine/ include placeholders and examples to be expanded during each week.
- Implement API clients for real market data providers (AlphaVantage, Tiingo, Polygon)
- Complete Celery scheduled tasks for data ingestion
- Implement backtester engine tie-ins to Django models
- Add authentication flows and secure storage for API keys
- Add unit tests and integration tests
MIT