Skip to content

mafia-brest/host-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Form filling API for Mafia Statistics

Installation

  • Setup virtual environment:
    pip install virtualenv
    virtualenv venv
    source venv/bin/activate
  • Install dependencies
    pip install 'setuptools<58.0.0'
    pip install -r requirements.txt
  • Create local database with PostgreSQL and set the following environment variables:
    DB_USER
    DB_PASSWORD
    DB_HOST
    DB_PORT
    DB_NAME
    

Running

  • Firstly, run migrations with alembic:
    alembic upgrade head
  • Then run web-server (configure the port if you need):
    gunicorn --bind 0.0.0.0:8000 -w 1 -t 4 main:app

About

Form filling API for Mafia Statistics website

Resources

Stars

Watchers

Forks