- NewOptions.AdminSecret: summer new writes SUMMER_ADMIN__JWT__SECRET to .env (still 0600), generated from 32 crypto/rand bytes when empty and validated as at least 32 .env-safe characters - .env.example gets an empty SUMMER_ADMIN__JWT__SECRET= placeholder with a comment; the secret never reaches the printed next steps - The next steps and the generated CLAUDE.md explain the admin at /backend: make:admin-controller, build, migrate and summer admin:create --email you@example.com --superuser - Goldens use a fixed, non-secret admin secret fixture - Scaffolding, installation and users-and-permissions docs updated
18 lines
477 B
Plaintext
18 lines
477 B
Plaintext
created <parent>/sm-demo-app
|
|
|
|
Next steps, inside sm-demo-app:
|
|
docker compose up -d --wait
|
|
summer build
|
|
summer migrate
|
|
summer serve
|
|
|
|
Then, from another terminal:
|
|
curl http://127.0.0.1:8080/
|
|
|
|
Admin, at http://127.0.0.1:8080/backend once a plugin registers an admin
|
|
controller (.env already holds SUMMER_ADMIN__JWT__SECRET):
|
|
summer make:admin-controller golem15.<plugin> <Name>
|
|
summer build
|
|
summer migrate
|
|
summer admin:create --email you@example.com --superuser
|