This guide gets MeasureTent running locally with API + web app.
- Node.js 20+
- pnpm 9+
pnpm installpnpm dev:apiAPI defaults:
- Base URL:
http://localhost:3001 - Health:
http://localhost:3001/health - Docs:
http://localhost:3001/docs
pnpm dev:webWeb defaults:
- URL:
http://localhost:5173 - Dev proxy forwards
/v1/*tohttp://localhost:3001
curl -X POST http://localhost:3001/v1/calculate \
-H "Content-Type: application/json" \
-d '{
"guestCount": 120,
"seatingStyle": "banquet",
"tentType": "pole",
"addOns": ["stage", "bar"]
}'pnpm typecheck
pnpm build- Port conflict: set
PORTbefore running API (PORT=3002 pnpm dev:api) - Validation errors: confirm payload matches
CalculationInputcontract inpackages/shared