controlpanel/server
2022-09-26 00:24:49 +02:00
..
server Fix unnecessary await 2022-09-26 00:24:49 +02:00
templates Implement some authentication 2022-09-25 23:57:17 +02:00
.gitignore Implement database connection 2022-09-25 14:40:07 +02:00
db.env.example Implement database connection 2022-09-25 14:40:07 +02:00
dummy-client.py Implement monitoring infrastructure 2022-09-22 19:27:01 +02:00
frontend Configure development and production modes 2022-09-04 17:49:25 +02:00
lua Implement /install 2022-09-22 21:01:40 +02:00
poetry.lock Implement some authentication 2022-09-25 23:57:17 +02:00
pyproject.toml Implement some authentication 2022-09-25 23:57:17 +02:00
README.md Implement database connection 2022-09-25 14:40:07 +02:00
secret.env.example Implement some authentication 2022-09-25 23:57:17 +02:00

Backend

Installation

poetry install --no-root

Requires poetry

Running

dev

$ cd ../frontend
$ npm run dev
# in a different terminal
$ DEV_MODE=1 poetry run uvicorn server:app --reload --env-file db.env

prod

$ pushd ../frontend
$ npm run build
$ popd
$ poetry run uvicorn server:app --env-file db.env