- Run
node bin/generateKeyPair.mjs <environment>
to generate JWT signing keys and update src/public/.well-known -> "jwks.json" - Copy secret omitted from command above (keyid & key password) in "secrets/<environment>.env" (e.g. secrets/development.env)
- Generate a strong secret/password somehow (e.g.
crypto.randomUUID().replaceAll('-', '').substring(0, 16)
) - Run
node bin/lockSecret.mjs <environment> <secret>
to encrypt secrets, use secret/password from step 3 here (encryption uses Node GPG) - Run DB with
docker-compose up --build
- Run
just dev
to start service in dev mode (DB is already running on docker) - For testing make sure DB is up (via docker-compose) and run
just test
http http://localhost:9090/v1/users email="ryan@example.com" password="123456" confirmedPassword="123456"
http http://localhost:9090/v1/sessions email="ryan@example.com" password="123456"
http http://localhost:9090/v1/user authorization:"token <jwt>"