- Basic golang setup using keycloak and postgres for authentication
- reusable for quickly setting up a go backend service with keycloak Authentication
Copy dev.example.env to .env
docker compose up
start db and keycloak using docker
docker compose up -d keycloak db
run app native for development
go run .
- deploy keycloak somewhere in production
- update the .env file/docker-compose with the keycloak url and clientID
- set env var to production