BurkhalterY / api.etml.burkhalter.dev

The backend of etml.burkhalter.dev

Home Page:https://api.etml.burkhalter.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

https://api.etml.burkhalter.dev

License:MIT License


Languages

Language:Python 99.4%Language:Dockerfile 0.6%