# Next.js Dashboard (modern frontend)

This folder contains an example **Next.js** frontend that consumes the dashboard API:

- `GET http://localhost:8080/smproduce/api/dashboard_stats.php?range=today|7d|30d&grower=...&variety=...`

## Run

```bash
cd next-dashboard
npm install
npm run dev
```

Make sure:

- Your PHP / Docker stack is running (see `deploy/README_DEPLOY.md`)
- The browser shares the login session cookies with `localhost:8080` (first log in using the classic PHP version).
