Skip to content

Tietokilta/laskugeneraattori

Repository files navigation

Laskugeneraattori

This is the laskugeneraattoori backend written in Rust.

The application is based on axum. PDF generation is based on typst.

Configuration

The following variables can be configured in the environment (or the .env file)

# VARIABLE="default value"

PORT=3000
BIND_ADDR=127.0.0.1
ALLOWED_ORIGINS= # comma separated list of urls
MAILGUN_URL=
MAILGUN_USER=
MAILGUN_PASSWORD=
MAILGUN_TO=
MAILGUN_FROM=

Running laskugeneraattori

With cargo

cargo run

With Docker

docker build . -t laskugeneraattori
docker run laskugeneraattori
``