Skip to content

HakierGrzonzo/PBL-polsl-2022

Repository files navigation

Czy ktoś zjebał builda?

API keys required for backend

In file api-keys.env you need to store your API keys:

OPEN_WEATHER_MAP=<your api key> # https://openweathermap.org/

#TODO

Backend

Link do bazy dannych ustawiamy jako zmienną środowiskową DATABASE, na przykład:

export DATABASE=postgresql+asyncpg://postgres:[email protected]:5432/pbl

lub dla powłoki fish:

set -x DATABASE postgresql+asyncpg://postgres:[email protected]:5432/pbl

Backend hostujemy za pomocą:

uvicorn backend:app --reload

Biblioteki insalujemy za pomocą komendy:

pip3 install -r backend/requirements.txt