Make a python virtual environment with the following command:
python3 -m venv .venvActivate the virtual environment
source .venv/bin/activateInstall the required packages with the following command:
pip install -r requirements.txt- DEFAULT_DB_NAME=''
- DEFAULT_DB_USER=''
- DEFAULT_DB_PASSWORD=''
- DEFAULT_DB_HOST=''
- DEFAULT_DB_PORT=''
- SUPABASE_URL=''
- SUPABASE_KEY=''
- APP_SECRET_KEY=''
- ALLOWED_HOSTS='localhost:8000,127.0.0.1,your-frontend-url'
At first, create a superuser, (remember the pass you are giving)
python manage.py createsuperuserThen create and make the migration
python manage.py makemigrations
python manage.py migrateTo run the backend server, use the following command:
python manage.py runserverhttp://127.0.0.1:8000/swagger/