Skip to content

BurkhalterY/api.etml.burkhalter.dev

Repository files navigation

api.etml.burkhalter.dev

The backend of etml.burkhalter.dev

Installation

  • Copy .env.sample to .env and change default settings.
    • ENVIRONMENT: prod or dev
    • WEB_PORT: 8000 (default)
    • JWT_SECRET: generate a random JWT secret
    • SQLITE_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.

Run

poetry run start

CLI

Grant a user as admin:

poetry run grant me@mail.com

Ungrant a user:

poetry run ungrant me@mail.com

Note: grant and ungrant commands support many users at the same time.

About

The backend of etml.burkhalter.dev

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published