controlpanel/server/README.md
2022-09-04 17:53:28 +02:00

25 lines
373 B
Markdown

# Backend
## Installation
`poetry install --no-root`
Requires [poetry](https://archlinux.org/packages/community/any/python-poetry/)
## Running
### dev
```bash
$ cd ../frontend
$ npm run dev
# in a different terminal
$ DEV_MODE=1 poetry run uvicorn server:app --reload
```
### prod
```bash
$ pushd ../frontend
$ npm run build
$ popd
$ poetry run uvicorn server:app
```