python -m venv venvNote: Make sure you have Python 3.12.3 or compatible version installed.
source venv/bin/activatevenv\Scripts\activatepoetry installtouch .envcp .env.example .envpoetry run python manage.py migratepoetry run uvicorn myapp.asgi:application --host 0.0.0.0 --port 8000 --reloadpoetry run python manage.py runserverNote: Uvicorn is recommended as it provides ASGI support for async features and WebSockets.
Useful Links:
- https://naveenrenji.medium.com/install-redis-on-windows-b80880dc2a36
- https://redis.io/docs/latest/operate/oss_and_stack/install/install-redis/install-redis-on-windows/
- https://github.com/tporadowski/redis
brew install redissudo apt update
sudo apt install redis-server(Before running Celery, make sure Redis is properly set up on your machine.)
celery -A myapp worker --loglevel=info --concurrency=5 --pool=solocelery -A myapp worker --loglevel=info --concurrency=5Note: The --pool=solo flag is required on Windows but not necessary on Mac/Linux.
After installation, start Redis using:
redis-serverIf you need realtime features like WebSocket support, run the Tornado server:
poetry run python tornado_server.pyNote: The Tornado server runs on port 8888 by default and handles realtime subscriptions and events.
# Copy .env.example to .env.local
cp .env.example .env.local
docker compose -f docker-compose.dev.yml --env-file .env.local up
# To run in detached mode:
docker compose -f docker-compose.dev.yml --env-file .env.local up -dYou can now access the server at http://localhost:8000/ and API documentation at http://localhost:8000/api/docs/.