feat: Controllo accessi RFID completo con gestione sessioni

- Aggiunto supporto multi-pattern RFID (US/IT layout)
- Implementata invalidazione sessioni al restart del server
- Schermata "badge non trovato" con countdown 30s
- Notifica quando badge validatore passato senza utente
- Database aggiornato con badge reali di test
- Layout ottimizzato per tablet orizzontale
- Banner NumLock per desktop
- Toggle visibilità password
- Carosello benvenuto multilingua (10 lingue)
- Pagina debug RFID (/debug)
This commit is contained in:
2026-01-17 20:06:50 +01:00
parent 21b509c6ba
commit e68f299feb
48 changed files with 3625 additions and 2445 deletions

View File

@@ -4,39 +4,58 @@ Sistema di controllo accessi per le assemblee di voto del **Movimento dei Focola
## 📖 Descrizione
Applicazione web ottimizzata per tablet che gestisce i varchi d'ingresso alle sale votazione. Il sistema utilizza lettori RFID USB (che emulano tastiera) per identificare validatori e partecipanti.
Applicazione web ottimizzata per tablet che gestisce i varchi d'ingresso alle sale votazione. Il sistema utilizza
lettori RFID USB (che emulano tastiera) per identificare validatori e partecipanti.
## 🏗️ Struttura Progetto
```
VotoFocolari/
├── dev.sh # Script sviluppo (install, dev, server, build, ...)
├── ai-prompts/ # Documentazione sviluppo e prompt
├── backend-mock/ # API mock in Python FastAPI
│ └── static/ # Frontend buildato (generato)
└── frontend/ # App React + TypeScript + Tailwind
```
## 🚀 Quick Start
### Backend
### Setup Iniziale
```bash
cd backend-mock
pipenv install
pipenv run start
# Server: http://localhost:8000
# Docs API: http://localhost:8000/docs
./dev.sh install
```
### Frontend
### Sviluppo (hot reload)
```bash
cd frontend
npm install
npm run dev
# App: http://localhost:5173
./dev.sh dev
# Backend API: http://localhost:8000
# Frontend Dev: http://localhost:5173
```
### Produzione Locale
```bash
./dev.sh server
# App completa: http://localhost:8000
```
### Altri Comandi
```bash
./dev.sh build # Solo build frontend
./dev.sh backend # Solo backend (API)
./dev.sh frontend # Solo frontend dev
./dev.sh shell # Shell pipenv backend
./dev.sh clean # Pulisce build e cache
./dev.sh help # Mostra tutti i comandi
```
## 📚 Documentazione
Per dettagli tecnici, consulta la cartella `ai-prompts/`:
- `00-welcome-agent.md` - Panoramica progetto
- `01-backend-plan.md` - Piano sviluppo backend
- `02-frontend-plan.md` - Piano sviluppo frontend
@@ -46,6 +65,10 @@ Per dettagli tecnici, consulta la cartella `ai-prompts/`:
- **Badge Validatore:** `999999`
- **Password:** `focolari`
## 🔍 Debug
Accedi a `/debug` per diagnostica RFID in tempo reale.
## 📄 Licenza
Progetto privato - Movimento dei Focolari