conda create -n <env_name> python=3.12.3
conda activate <env_name>
poetry install
touch .env
cp .env.example .env
poetry run python manage.py migrate
poetry run python manage.py runserver
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 redis
sudo 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=solo
celery -A myapp worker --loglevel=info --concurrency=5
Note: The --pool=solo
flag is required on Windows but not necessary on Mac/Linux.
After installation, start Redis using:
redis-server
docker compose -f docker-composse.dev.yml up
# To run in detached mode:
docker compose -f docker-compose.dev.yml up -d
You can now access the server at http://localhost:8000/ and API documentation at http://localhost:8000/api/docs/.