The backend of etml.burkhalter.dev
- Copy
.env.sample
to.env
and change default settings.ENVIRONMENT
:prod
ordev
WEB_PORT
:8000
(default)JWT_SECRET
: generate a random JWT secretSQLITE_PATH
:etml.db
(default)
poetry install
poetry shell
piccolo migrations forwards user
piccolo migrations forwards app
poetry run init
You can also use the docker image from Docker Hub. In this case, you'll need to mount the SQLite db file.
poetry run start
Grant a user as admin:
poetry run grant [email protected]
Ungrant a user:
poetry run ungrant [email protected]
Note: grant
and ungrant
commands support many users at the same time.