The self-service cardkey management webbed site.
https://cardkey.devhack.net/
| .forgejo/workflows | ||
| cmd/cardkey | ||
| config | ||
| db | ||
| deploy | ||
| dev | ||
| jobs | ||
| notification | ||
| syncing | ||
| web | ||
| .gitignore | ||
| .ko.yaml | ||
| cardkey.sample.json | ||
| compose.yaml | ||
| go.mod | ||
| go.sum | ||
| HIKVISION.md | ||
| LICENSE | ||
| README.md | ||
| renovate.json | ||
| sqlc.yaml | ||
cardkey
The self-service cardkey management system for the hackerspace! It lets people self-serve card activation/deactivation, handles chat announcements for door taps, and eventually strives to have other door-related self-serve features.
Contributors
Prerequisites
- Go
- Docker (and maybe podman, but untested)
To work on specific features, you may also need:
- Door controller (Omni Security) credentials
Getting Started
-
Clone the repository
-
Start the development environment
docker compose up -dThis will start PostgreSQL and Keycloak services with pre-configured test users and groups.
-
Create your configuration file
cp cardkey.sample.json cardkey.jsonUpdate any necessary settings in
cardkey.json. -
Run the thing
go run cmd/cardkey/main.go -
Access:
- The web app at http://localhost:8080
- The admin interface at http://localhost:8080/admin (log in with
jane) - Keycloak at http://localhost:8081
Test Users
- Regular member: john/password
- Member who also is in the admin group: jane/password
- Real Keycloak admin: admin/admin