feat(admin): create and list users commands

This commit is contained in:
Matthieu Bessat 2024-12-03 13:20:33 +01:00
parent 8d20cab18f
commit a0de3b287b
19 changed files with 314 additions and 30 deletions

View file

@ -1,12 +1,15 @@
export RUST_BACKTRACE := "1"
export RUST_LOG := "trace"
export RUN_ARGS := "run --bin minauthator-server -- --config ./config.toml --database ./tmp/dbs/minauthator.db --static-assets ./assets"
export CONTEXT_ARGS := "--config ./config.toml --database ./tmp/dbs/minauthator.db --static-assets ./assets"
watch-run:
cargo-watch -x "$RUN_ARGS"
watch-server:
cargo-watch -x "run --bin minauthator-server -- $CONTEXT_ARGS"
run:
cargo $RUN_ARGS
server:
cargo run --bin minauthator-server -- $CONTEXT_ARGS
admin:
cargo run --bin minauthator-admin -- $CONTEXT_ARGS
docker-run:
docker run -p 3085:8080 -v ./tmp/docker/config:/etc/minauthator -v ./tmp/docker/db:/var/lib/minauthator minauthator