Docs & Tools
Mimo User Manual
Quick reference for admins and team members. For the full markdown version, see the repo file in docs/user-manual.md. For a guided walkthrough, see How to Use or return to the Docs & Tools hub.
Overview
- Collect renovation projects and manage professionals/companies/resellers.
- Admin views for reviewing data and patterns; REST API backs the frontend.
Access
- Web (Vercel): Admin pages and frontend UI.
- API (Render): https://fitouthub.onrender.com
Admin Features
- Professionals: list, filter, view detail.
- Projects: list, view detail.
- Users: list (once API route is live after deploy).
- Patterns: core + DB patterns (after migration runs).
Key API Endpoints
- GET /projects — list projects; /projects/:id — detail; /projects/:id/professionals — linked pros.
- GET /trades — canonical trades endpoint.
- GET /tradesmen — legacy/deprecated (compatibility only; migrate to /trades).
- GET /professionals — list professionals (filters supported).
- GET /users — list users (after deploy).
- GET /patterns?includeCore=true — core + DB patterns (after migration).
- Auth (if enabled): POST /auth/login, POST /auth/register.
Environment Config
- Frontend (Vercel): NEXT_PUBLIC_API_BASE_URL=https://fitouthub.onrender.com.
- API (Render): DATABASE_URL with pooler port 5432 and pgbouncer params; JWT secrets; RESEND_API_KEY; BASE_URL.
- Local: API pnpm start:dev (3001); Web pnpm dev (3000); NEXT_PUBLIC_API_BASE_URL=http://localhost:3001.
Common Tasks
- Run API locally: cd apps/api && pnpm start:dev.
- Run Web locally: cd apps/web && pnpm dev.
- Run migrations locally: cd apps/api && pnpm exec prisma migrate deploy.
- Seed (if needed): pnpm run seed:professionals, pnpm run seed:patterns (apps/api).
Troubleshooting
- Patterns/Users 404 on Render: redeploy with migrations (pnpm --filter=api exec prisma migrate deploy during build).
- DB connection issues: use pooler host/port 5432 with pgbouncer=true&connection_limit=1.
- Missing module on Render: ensure pnpm install runs at root before build.