-
Notifications
You must be signed in to change notification settings - Fork 1
How to run
Bekzod Buyukov edited this page Sep 16, 2022
·
8 revisions
How to run guide:
-
Install any package manager, pipenv or venv are preferred. This case will show you running application using pipenv:
pip install pipenv
-
Go to project directory
backend/
. Create virtual environment:pipenv shell
-
Install requirements:
pipenv install -r requirements.txt
-
Create .env file and put in
backend/src
directory. -
Put following content in
.env
:SECRET_KEY=secret_key DB_ENGINE=engine DB_NAME=db_name DB_USER=db_user DB_PASSWORD=db_pass DB_HOST=db_host DB_PORT=db_port
-
Apply migrations:
python src/manage.py migrate
-
Run the project:
python src/manage.py runserver