Skip to content

awesome-movie-database/amdb-backend

Repository files navigation

Image

License Code style Mypy status Test status

Used technologies:

How to run:

Manually:

  1. Install
pip install -e ".[web_api]"
  1. Create config file

  2. Provide CONFIG_PATH env variable

  3. Run migrations

amdb alembic upgrade head
  1. Run worker
amdb worker
  1. Run server
amdb web-api

Using docker-compose:

  1. Create config file

  2. Provide CONFIG_PATH, REDIS_PASSWORD, REDIS_PORT_NUMBER, POSTGRES_USER, POSTGRES_PASSWORD, POSTGRES_DB, SERVER_HOST, SERVER_PORT env variables

  3. Run worker and server

docker-compose up web_api
  1. Run migrations
docker exec -it amdb_backend.web_api amdb alembic upgrade head