npx auth secret
This will generate an AUTH_SECRET
inside the .env
file, create a .env.local
file and move the line with the secret over to it. While you're at it copy over the two ZITADEL_CLIENT_*
lines over, you'll need them later.
Install the project dependencies
yarn install
docker compose up
sudo caddy run
/etc/hosts
127.0.0.1 mail.kindergarten.test
127.0.0.1 kindergarten.test
127.0.0.1 zitadel.kindergarten.test
127.0.0.1 db-web.kindergarten.test
zitadel.kindergarten.test
) setup by logging in with the default account (https://zitadel.com/docs/self-hosting/deploy/compose)User: [email protected]
Password: Password1!
Create Kindergarten
project in zitadel (see next steps section in Zitadel)
In that new project create a new application (first button inside the page)
Name it Kindergarten Website
, choose type Web
, Authentication Method Code
On the form that now appears: enable development mode, set the redirect URI to http://kindergarten.test/auth/callback/zitadel
and the post logout URI to http://kindergarten.test
Copy the ClientId and ClientSecret shown here over to the corresponding lines in the .env.local
In the project's token settings activate User roles inside ID Token
and User Info inside ID Token
Go to Default Settings
(top-right) -> SMTP Provider
and add a Generic SMTP
provider
Use mailhog:1025
for the host and use whatever you want for the remaining fields (it doesn't matter) and click activate on the last step. You should see any email you trigger appear at mail.kindergarten.test
Ensure that in this project sudo caddy run
and in the SpringBoot project docker compose up
and the project itself are running
Start the website
yarn run dev