How zvyx/20adq works
CRM Adquisiciones is a procurement CRM whose implemented workflow presents a dashboard of acquisition metrics and recent orders, with an entry point for creating a request. The dashboard fetches metrics and orders through API routes; service modules query or write through Prisma. Provider listing is also exposed by an API route. The README additionally identifies suppliers, purchase orders, and contracts as product domains, but describes the backend as unfinished. The graph follows shown calls and imports; the new-request page’s submission behavior and unsampled contract handling are not established by the excerpts.
Main entry points: app/page.tsx Dashboard page · db.ts Prisma client · nueva/page.tsx New request page · layout.tsx App layout
Components 19
Application experience
- Dashboard page
src/app/page.tsx - New request page
src/app/solicitud/nueva/page.tsx - App layout
src/app/layout.tsx - Sidebar
src/components/layout/Sidebar.tsx - Topbar
src/components/layout/Topbar.tsx - Button
src/components/ui/Button.tsx - Data table
src/components/ui/DataTable.tsx - Metric card
src/components/ui/MetricCard.tsx - Input
src/components/ui/Input.tsx
Procurement API
- Orders API
src/app/api/orders/route.ts - Dashboard API
src/app/api/dashboard/route.ts - Providers API
src/app/api/providers/route.ts
Data services
- Order service
src/services/orderService.ts - Dashboard service
src/services/dashboardService.ts - Provider service
src/services/providerService.ts
Persistence
- Prisma client
src/lib/db.ts - SQLite database
prisma/dev.db - Procurement schema
prisma/schema.prisma
Other components
- CRM user
Connections 18
- App layout → Sidebar: renders
src/app/layout.tsx - App layout → Topbar: renders
src/app/layout.tsx - Dashboard page → Button: renders
src/app/page.tsx - Dashboard page → Metric card: renders
src/app/page.tsx - Dashboard page → Data table: renders
src/app/page.tsx - New request page → Button: renders
src/app/solicitud/nueva/page.tsx - New request page → Input: renders
src/app/solicitud/nueva/page.tsx - Dashboard page → Dashboard API: fetches metrics
src/app/page.tsx - Dashboard page → Orders API: fetches orders
src/app/page.tsx - Orders API → Order service: calls
src/app/api/orders/route.ts - Dashboard API → Dashboard service: calls
src/app/api/dashboard/route.ts - Providers API → Provider service: calls
src/app/api/providers/route.ts - Order service → Prisma client: queries and writes
src/services/orderService.ts - Dashboard service → Prisma client: queries
src/services/dashboardService.ts - Provider service → Prisma client: queries
src/services/providerService.ts - CRM user → Dashboard page: views
- Prisma client → SQLite database: accesses
- Procurement schema → SQLite database: defines data