feat: OAuth implementation with Discord
All checks were successful
CI / tests (push) Successful in 10m39s
CI / tests (pull_request) Successful in 11m17s

This commit separates the core features of GéJDR from the backend as
these will also be used by the bot in the future.

This commit also updates the dependencies of the project. It also
removes the dependency lettre as well as the mailpit docker service
for developers as it appears clearer this project won’t send emails
anytime soon.

The publication of a docker image is also postponed until later.
This commit is contained in:
2024-08-10 11:06:18 +02:00
parent 2013d04cf7
commit aac70e4131
49 changed files with 2699 additions and 720 deletions

View File

@@ -1,10 +1,7 @@
default: run
mod backend 'gejdr-backend/backend.just'
mod docker
prepare:
cargo sqlx prepare
migrate:
sqlx migrate run
default: lint
format:
cargo fmt --all
@@ -12,38 +9,30 @@ format:
format-check:
cargo fmt --check --all
build:
cargo auditable build
migrate:
sqlx migrate run --source gejdr-core/migrations
build-release:
cargo auditable build --release
build $SQLX_OFFLINE="1":
cargo auditable build --bin gejdr-backend
cargo auditable build --bin gejdr-bot
run: docker-start
cargo auditable run
run-no-docker:
cargo auditable run
build-release $SQLX_OFFLINE="1":
cargo auditable build --release --bin gejdr-backend
cargo auditable build --release --bin gejdr-bot
lint:
cargo clippy --all-targets
msrv:
cargo msrv verify
release-build:
cargo auditable build --release
release-run:
cargo auditable run --release
audit: build
cargo audit bin target/debug/gege-jdr-backend
cargo audit bin target/debug/gejdr-backend
cargo audit bin target/debug/gejdr-bot
audit-release: build-release
cargo audit bin target/release/gege-jdr-backend
cargo audit bin target/release/gejdr-backend
cargo audit bin target/release/gejdr-bot
test:
cargo test
cargo test --all-targets --all
coverage:
mkdir -p coverage
@@ -53,19 +42,10 @@ coverage-ci:
mkdir -p coverage
cargo tarpaulin --config .tarpaulin.ci.toml
check-all: format-check lint msrv coverage audit
check-all: format-check lint coverage audit
docker-build:
nix build .#docker
docker-start:
docker compose -f docker/compose.dev.yml up -d
docker-stop:
docker compose -f docker/compose.dev.yml down
docker-logs:
docker compose -f docker/compose.dev.yml logs -f
docker-backend $SQLX_OFFLINE="1":
nix build .#dockerBackend
## Local Variables:
## mode: makefile