Update next.config.js for standalone output and enhance README with Docker instructions and installation updates
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 2m13s
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 2m13s
This commit is contained in:
37
README.md
37
README.md
@@ -5,27 +5,54 @@ Application Next.js pour extraire aléatoirement un certain nombre de personnes
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
npm install
|
||||
pnpm install
|
||||
```
|
||||
|
||||
## Développement
|
||||
|
||||
```bash
|
||||
npm run dev
|
||||
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
|
||||
- `app/api/people/route.ts` - API route pour charger les données du CSV
|
||||
- `lib/csv-parser.ts` - Parser pour le fichier CSV
|
||||
- `group-dev-ad.csv` - Fichier source des données
|
||||
- `lib/csv-parser-client.ts` - Parser CSV côté client
|
||||
- `Dockerfile` - Configuration Docker multi-stage
|
||||
- `docker-compose.yml` - Configuration Docker Compose
|
||||
|
||||
|
||||
Reference in New Issue
Block a user