mirror of
https://github.com/warmbly/warmbly.git
synced 2026-09-06 16:01:28 +00:00
The admin and marketing site sit outside the compose stack, so `make app` never started them. Add `make admin` and `make site` to launch each workspace's dev server (Vite on 5174, Astro on 4321), and update the root README and admin/README to point at them instead of the old "open localhost:5174" line that implied `make app` was enough. Also add `make grant-admin EMAIL=... [ROLE=super|support|ops|analyst]` plus `make revoke-admin` so the first super-admin can be seeded without hand-writing SQL. Role bitmasks mirror AdminRolePermissions in internal/models/admin_permission.go.
28 lines
830 B
Markdown
28 lines
830 B
Markdown
# site
|
|
|
|
Warmbly's public marketing site. Astro 5 + Tailwind v4, separate from the
|
|
in-product dashboard at `web/` and the admin app at `admin/`.
|
|
|
|
## Run it locally
|
|
|
|
```sh
|
|
pnpm install
|
|
pnpm dev # boots on http://localhost:4321
|
|
pnpm build # static output into ./dist
|
|
pnpm preview # serve the production build locally
|
|
```
|
|
|
|
From the repo root you can also use `make site`, which is a shortcut for
|
|
`cd site && pnpm dev`. `make app` does **not** start this site — it lives
|
|
outside the docker compose stack and ships on its own cadence.
|
|
|
|
## Layout
|
|
|
|
```
|
|
site/
|
|
├── astro.config.mjs # sitemap integration + Tailwind v4 Vite plugin
|
|
├── public/ # static assets served as-is
|
|
├── scripts/ # build-time helpers
|
|
└── src/ # pages, layouts, components, content
|
|
```
|