# EvoluManager Lab

Demo training platform in French with AI roleplay, local YAML content, browser-session persistence, and a shared password gate.

## Run locally

1. Copy `.env.example` to `.env.local` (or `.env`).
2. Fill in your OpenAI variables and `DEMO_ACCESS_PASSWORD`.
3. Run `npm install`.
4. Run `npm run dev`.
5. Open `http://localhost:3000`.

## Environment variables

```bash
OPENAI_API_KEY=...
OPENAI_ROLEPLAY_MODEL=gpt-5.2
OPENAI_EVALUATION_MODEL=gpt-5.2
OPENAI_FINAL_ASSESSMENT_MODEL=gpt-5.2
OPENAI_COACH_MODEL=gpt-5.2

DEMO_ACCESS_PASSWORD=change-me
```

Only these variables are required for the demo runtime.

## Demo data

The demo reads its editable content from:

- `data/demo/app.yaml`
- `data/demo/scenarios.yaml`
- `data/demo/knowledge.yaml`

Update these files to change the demo persona, scenario catalog, and coach knowledge base without touching a database or admin console.

## Persistence model

- Access is controlled by a shared password and a session cookie.
- Onboarding, action plan, autodiagnostic progress, simulations, reports, and coach conversations are stored in `sessionStorage`.
- Closing the browser session clears the collected demo data.

## Reachable test access

Use these commands when you want the app to listen on all network interfaces instead of only the local machine:

```bash
npm run dev:public
npm run build
npm run start:public
```

For another device on the same network, open `http://<your-lan-ip>:3000`.

## Useful commands

```bash
npm run dev
npm run dev:public
npm run lint
npm run build
npm run start:public
```
