Quick commands
- Run server (in
server):
cd server
npm install
# ensure DATABASE_URL set if using Postgres; by default local SQLite at server/dev.db is used
npm run dev- Run client (in
client):
cd client
npm install
npm run devFetch insights (cached):
curl http://localhost:3000/api/insightsForce recompute:
curl http://localhost:3000/api/insights?force=true
# or
curl -X POST http://localhost:3000/api/insights/refreshList persisted insight history:
curl http://localhost:3000/api/insights/historyNotes
- Tests: I added analysis and generator code in
intelligence/. To add unit tests, you can add Jest + ts-jest and create tests under__tests__. - Persistence: Insights are stored in the
InsightPrisma model (SQLiteserver/dev.db).