initial commit
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
# Implementazione Anagrafiche (Aziende e Lavoratori)
|
||||
Data: 2025-12-15
|
||||
Stato: In Corso
|
||||
|
||||
## Obiettivo
|
||||
Implementare il modulo gestione anagrafiche completo (Backend API + Frontend UI) per Aziende e Lavoratori.
|
||||
|
||||
## Backend (Node.js/Express)
|
||||
- [ ] Struttura Modulare: setup cartelle `src/modules/{companies,workers}/{controllers,services,routes}`.
|
||||
- [ ] **Companies Module**:
|
||||
- [ ] Service: `create`, `findAll`, `findOne`, `update`, `delete`.
|
||||
- [ ] Controller: Endpoint REST.
|
||||
- [ ] Routes: `GET /api/companies`, `POST`, `PUT`, `DELETE`.
|
||||
- [ ] **Workers Module**:
|
||||
- [ ] Service: CRUD con relazione Azienda/Sede.
|
||||
- [ ] Controller: Endpoint REST.
|
||||
- [ ] Routes: `GET /api/workers` (con filtri), `POST`, etc.
|
||||
|
||||
## Frontend (React)
|
||||
- [ ] **Core**:
|
||||
- [ ] Setup `react-router-dom`.
|
||||
- [ ] Setup Client API (Axios instance).
|
||||
- [ ] Layout Component (Sidebar Menu).
|
||||
- [ ] **Companies UI**:
|
||||
- [ ] Page: Lista Aziende (Tabella).
|
||||
- [ ] Component: Form Azienda (Modale o Pagina dedicata).
|
||||
- [ ] **Workers UI**:
|
||||
- [ ] Page: Lista Lavoratori.
|
||||
- [ ] Component: Form Lavoratore.
|
||||
|
||||
## Note Tecniche
|
||||
- Usare `zod` per validazione input backend (se possibile, altrimenti validazione manuale per velocità MVP).
|
||||
- Frontend: usare componenti riutilizzabili per inputs e tabelle.
|
||||
Reference in New Issue
Block a user