4
6
Fork
You've already forked Trollsystem
11
Helfendenverwaltungstool mit Gulaschgeschmack
  • Rust 96.3%
  • Nix 1.5%
  • Shell 1%
  • PLpgSQL 0.9%
  • Dockerfile 0.3%
Rick Elrod cf0740d5da
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci: Build + clippy on push and PR
2026年06月11日 02:16:56 +02:00
.cargo make all checks pass 2026年03月15日 21:17:44 +00:00
.config pretalx import 2026年05月29日 01:03:20 +02:00
.woodpecker ci: Build + clippy on push and PR 2026年06月11日 02:16:56 +02:00
crates *: Run clippy --fix on everything 2026年06月11日 01:38:38 +02:00
infra Add new required env to prod-compose.yml 2026年06月02日 11:10:51 +02:00
scripts Dev: Add helper script to query DB 2026年05月31日 11:39:25 +02:00
.dockerignore Add docker-compose 2026年03月22日 08:24:59 +01:00
.editorconfig Add more formats to editorconfig indent=2 2026年05月25日 00:46:10 +02:00
.envrc initial commit 2026年03月07日 23:38:39 +00:00
.gitignore notif server 2026年04月25日 17:34:06 +02:00
Cargo.lock feat: implement voucherpronter integration for goodies 2026年06月03日 23:01:13 +00:00
Cargo.toml initial commit 2026年03月07日 23:38:39 +00:00
compose.yml pretalx api 2026年06月01日 16:38:26 +02:00
deny.toml fix: make more tests pass again 2026年04月25日 20:06:10 +00:00
Dockerfile feat: Create troll on account creation 2026年05月30日 01:17:45 +02:00
flake.lock initial commit 2026年03月07日 23:38:39 +00:00
flake.nix Remove unused trollsystem-common 2026年05月27日 12:30:40 +02:00
LICENSE initial commit 2026年03月07日 23:38:39 +00:00
prod.Dockerfile add ca certificates 2026年05月30日 01:41:49 +02:00
README.md Dev: Add add-test-users.sh script 2026年05月31日 09:10:55 +02:00
taplo.toml more wip 2026年03月14日 18:15:27 +00:00

Trollsystem

Helfendenverwaltungstool mit Gulaschgeschmack

Start via Docker Compose

For development purposes, a docker compose setup is provided to allow building running the microservices in a simple and reproducible fashion. You may need to install Docker on your system. Podman will not work.

Run the following command to start the backend microservices and database:

docker compose up --build

You can also enable watch mode to automatically recompile and restart microservices when their source code is changed:

docker compose up --build --watch

You can teardown the environment and start fresh with the following command (--volumes will delete the database volume):

docker compose down --volumes

Further usage

You can register a sample user by calling the API using curl. The command will return null the first time it is run and an error on subsequent calls.

curl -X POST http://localhost:8080/register \
 -H "Content-Type: application/json" \
 -d '{
 "username": "testuser",
 "email": "test@example.com",
 "password": "password123",
 "allow_notifications": false,
 "allow_keep_data": false
 }'

You can then list the registered users:

docker compose exec database psql -U postgres -d trollsystem-auth -c "SELECT * FROM users;"

Test users

After starting the backend you can use the following command to add test users (one for each role):

scripts/add-test-users.sh

Then, you can login using, e.g., test-admin as the username and password as the password.