Lightweight Express server + React 18 dashboard that:
- Uses Rollout Link (
@rollout/link-react) for credential input and credential management. - Mints Rollout JWTs on the backend (
HS512,iss/sub/exp). - Loads KPI + trend data from Postgres
public.rollout_%tables bycredentialId.
- Install dependencies:
npm install
- Copy envs and fill values:
cp .env.example .env
- Run both server and client:
npm run dev
Server: http://localhost:4000
Client: http://localhost:5173
GET /api/configGET /api/rollout/token?userId=<id>GET /api/credentialsGET /api/dashboard/summary?credentialId=<id>&rangeDays=90&metric=contactsMade