-
Navigate to the backend root directory
cd path-to-backend
-
create a virtual environment with
-
Or
python -m venv env
-
virtualenv env
-
-
activate the virtaul environment
- Windows
./env/Script/activate
- Linux or Macos using powershell on windows
source ./env/bin/activate
- Windows
-
install the dependencies
pip install -r requirements.txt
-
Run the server
python manage.py runserver
- Open a terminal and navigate to the project root directory
- Run the command
python manage.py test
- Make sure you have install
redis
- after installing all the dependencies
- Run Django Server with
python manage.py runserver
- Run Redis
redis-server
- Run Celery
celery -A backend worker -l INFO
- Run Celery beat
celery -A backend beat -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler