prompt 9
This commit is contained in:
41
README.md
41
README.md
@@ -14,6 +14,22 @@ Boilerplate riusabile per:
|
||||
|
||||
In ambiente `develop`, le email vengono salvate in `./data/emails` (sink locale).
|
||||
|
||||
## UI Kit (Vite + Svelte CE)
|
||||
|
||||
Comandi:
|
||||
|
||||
```bash
|
||||
cd ui-kit
|
||||
npm install
|
||||
npm run dev
|
||||
npm run build
|
||||
```
|
||||
|
||||
La build scrive direttamente in `web/static/ui`:
|
||||
|
||||
- `ui.esm.js`
|
||||
- `ui.css`
|
||||
|
||||
## Struttura iniziale
|
||||
|
||||
```text
|
||||
@@ -32,6 +48,7 @@ In ambiente `develop`, le email vengono salvate in `./data/emails` (sink locale)
|
||||
│ ├── models/
|
||||
│ ├── repo/
|
||||
│ └── services/
|
||||
├── ui-kit/
|
||||
├── web/
|
||||
│ ├── emails/
|
||||
│ │ └── templates/
|
||||
@@ -43,29 +60,5 @@ In ambiente `develop`, le email vengono salvate in `./data/emails` (sink locale)
|
||||
│ ├── admin/
|
||||
│ ├── private/
|
||||
│ └── public/
|
||||
├── ui-kit/
|
||||
└── data/ # solo sviluppo locale
|
||||
```
|
||||
|
||||
## TODO Checklist
|
||||
|
||||
- [ ] Definire bootstrap server in `cmd/server` (entrypoint + lifecycle).
|
||||
- [ ] Configurare loader config (`env`, `flags`) in `internal/config`.
|
||||
- [ ] Impostare `internal/db` con supporto SQLite (dev) e Postgres (prod).
|
||||
- [ ] Definire modelli base GORM in `internal/models` (User, Role, Session, ecc.).
|
||||
- [ ] Implementare repository layer in `internal/repo`.
|
||||
- [ ] Implementare service layer in `internal/services`.
|
||||
- [ ] Implementare controller layer in `internal/controllers`.
|
||||
- [ ] Configurare router HTTP in `internal/http` (gruppi public/private/admin).
|
||||
- [ ] Aggiungere middleware comuni in `internal/middleware` (logging, recovery, auth, cors).
|
||||
- [ ] Implementare auth in `internal/auth` (login/logout/session o token).
|
||||
- [ ] Implementare RBAC con ruolo `admin`.
|
||||
- [ ] Configurare mailer + email sink in `internal/mailer`.
|
||||
- [ ] Definire template rendering per `web/templates/public`, `web/templates/private`, `web/templates/admin`.
|
||||
- [ ] Preparare template email in `web/emails/templates`.
|
||||
- [ ] Definire static assets pipeline e convenzioni in `web/static`.
|
||||
- [ ] Impostare `ui-kit` con Svelte Custom Elements e output in `web/static/ui`.
|
||||
- [ ] Definire integrazione HTMX lato template/partials.
|
||||
- [ ] Aggiungere migrazioni DB iniziali e seed minimo.
|
||||
- [ ] Aggiungere test base (unit + integrazione) per router/auth/repo.
|
||||
- [ ] Aggiungere script Makefile/task runner per setup e run locale.
|
||||
|
||||
Reference in New Issue
Block a user