26 lines
410 B
Markdown
26 lines
410 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 --env-file db.env
|
|
```
|
|
|
|
### prod
|
|
```bash
|
|
$ pushd ../frontend
|
|
$ npm run build
|
|
$ popd
|
|
$ poetry run uvicorn server:app --env-file db.env
|
|
```
|