How to run - uzbekvoice/backend GitHub Wiki

How to run guide:

  1. Install any package manager, pipenv or venv are preferred. This case will show you running application using pipenv:

    pip install pipenv

  2. Go to project directory backend/. Create virtual environment:

    pipenv shell

  3. Install requirements:

    pipenv install -r requirements.txt

  4. Create .env file and put in backend/src directory.

  5. 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
    
  6. Apply migrations:

    python src/manage.py migrate

  7. Run the project:

    python src/manage.py runserver