Installation
You can clone this application:
git clone https://github.com/Blastz13/queue_fastapi.gitNext, you need to install the necessary libraries:
poetry install
poetry updateYou need to set variables in the environment:
JWT_SECRET — Secret JWT key
JWT_ALGORITHM — Encryption algorithm method
POSTGRES_USER — Database username
POSTGRES_PASSWORD — Database password
POSTGRES_SERVER — Database host
POSTGRES_PORT — Database port
POSTGRES_DB — Database name
PGADMIN_DEFAULT_EMAIL — Postgres admin email
PGADMIN_DEFAULT_PASSWORD — Postgres admin password
MONGO_INITDB_ROOT_USERNAME — Mongo database username
MONGO_INITDB_ROOT_PASSWORD — Mongo database password
Launch
Change directory from web app, create and apply migrations:
cd queue_fastapi
alembic revision --autogenerate -m 'Initial'
alembic upgrade headNow you can start the server:
uvicorn main:app --reloadCopyright © 2021 Blastz13.