This demo runs GONK, two demo upstream services, and Prometheus.
Prerequisite: Docker Compose v2 (docker compose).
docker compose -f examples/quickstart/docker-compose.yml up --buildGONK listens on http://localhost:8080.
Prometheus listens on http://localhost:9090.
curl http://localhost:8080/public/pingdocker compose -f examples/quickstart/docker-compose.yml run --rm --entrypoint gonk-cli gonk \
auth jwt generate \
--role user \
--scopes read:api \
--user-id demo-user \
--expiry 24hCopy the token from the command output, then call the protected route:
TOKEN="<paste-token-here>"
curl -H "Authorization: Bearer $TOKEN" http://localhost:8080/api/pingcurl http://localhost:8080/_gonk/health
curl http://localhost:8080/_gonk/info
curl http://localhost:8080/metricsdocker compose -f examples/quickstart/docker-compose.yml down --remove-orphansmake demo-smokeThe smoke test starts the stack, calls a public route, generates a JWT, calls a protected route, checks metrics, and then tears the stack down.