Update README.md

This commit is contained in:
Thomas E Lackey 2023-08-17 22:33:59 +00:00
parent d2aded6022
commit 16c4090c31

View File

@ -1 +1,24 @@
# keycloak-reg-api
Simple API for self-registration of Keycloak accounts that use API keys.
## Building
### Local
```
$ yarn install
$ export CERC_KCUSERREG_API_URL=http://keycloak:8080/auth
$ export CERC_KCUSERREG_REG_PW=MySecretKeycloakApiPassword
$ yarn dev
```
### Docker
```
$ docker build -t cerc/keycloak-reg-api:local .
$ docker run \
-e CERC_KCUSERREG_API_URL=http://keycloak:8080/auth \
-e CERC_KCUSERREG_REG_PW=MySecretKeycloakApiPassword \
-p 9292 cerc/keycloak-reg-api:local
```