forked from entropia/Trollsystem
Helfendenverwaltungstool mit Gulaschgeschmack
- Rust 93.4%
- Nix 6.3%
- Dockerfile 0.3%
| .cargo | make all checks pass | |
| .config | Rename troll db db | |
| crates | Merge branch 'main' into shift-db | |
| .dockerignore | Add docker-compose | |
| .editorconfig | more wip | |
| .envrc | initial commit | |
| .gitignore | notif server | |
| Cargo.lock | Merge branch 'main' into shift-db | |
| Cargo.toml | initial commit | |
| compose.yml | Merge branch 'main' into shift-db | |
| deny.toml | fix: make more tests pass again | |
| Dockerfile | feat: start shiftdb with docker | |
| flake.lock | initial commit | |
| flake.nix | Merge branch 'main' into shift-db | |
| LICENSE | initial commit | |
| README.md | Add docker-compose | |
| taplo.toml | more wip | |
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
Run the following command to start the backend microservices and database:
docker compose up
Or, if you want to rebuild:
docker compose up -d --build
To shut the containers off:
docker compose down
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;"