All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 2m13s
59 lines
1.2 KiB
Markdown
59 lines
1.2 KiB
Markdown
# People Randomizr
|
|
|
|
Application Next.js pour extraire aléatoirement un certain nombre de personnes à partir d'un fichier CSV.
|
|
|
|
## Installation
|
|
|
|
```bash
|
|
pnpm install
|
|
```
|
|
|
|
## Développement
|
|
|
|
```bash
|
|
pnpm dev
|
|
```
|
|
|
|
Ouvrez [http://localhost:3000](http://localhost:3000) dans votre navigateur.
|
|
|
|
## Docker
|
|
|
|
### Build et lancement avec Docker Compose
|
|
|
|
```bash
|
|
docker-compose up --build
|
|
```
|
|
|
|
L'application sera accessible sur [http://localhost:3000](http://localhost:3000)
|
|
|
|
### Build manuel
|
|
|
|
```bash
|
|
docker build -t people-randomizr .
|
|
docker run -p 3000:3000 people-randomizr
|
|
```
|
|
|
|
### Arrêter les conteneurs
|
|
|
|
```bash
|
|
docker-compose down
|
|
```
|
|
|
|
## Fonctionnalités
|
|
|
|
- Upload de fichier CSV via l'interface
|
|
- Stockage des données dans le localStorage du navigateur
|
|
- Affichage de toutes les personnes du CSV
|
|
- Filtrage par poste avec recherche
|
|
- Extraction aléatoire d'un nombre configurable de personnes
|
|
- Affichage des résultats avec nom, description et type
|
|
- Thème tech moderne avec glassmorphism
|
|
|
|
## Structure
|
|
|
|
- `app/page.tsx` - Page principale avec l'interface utilisateur
|
|
- `lib/csv-parser-client.ts` - Parser CSV côté client
|
|
- `Dockerfile` - Configuration Docker multi-stage
|
|
- `docker-compose.yml` - Configuration Docker Compose
|
|
|