How jeevanbagade/dasdoc works
DocDash is a full-stack print-ordering application: customers create an account, upload documents, choose print options and delivery details, review a server-authoritative quote, pay by UPI or COD, and track orders. The graph preserves the upload/page-count, pricing, payment, and order-history capabilities described in the README. Source excerpts show wizard-to-step composition, upload actions, and order/payment behavior; other service connections are documented at the API level in the README, not verified in sampled route implementations.
Main entry points: checkout-wizard.tsx Checkout wizard · route.ts Order endpoints · documents.ts Document processing · orders.ts Order service
Components 25
Customer experience
- Sign-in screens
docdash-document-printing-mvp/src/app/login/page.tsx - Registration
docdash-document-printing-mvp/src/app/signup/page.tsx - Checkout wizard
docdash-document-printing-mvp/src/components/wizard/checkout-wizard.tsx - Document upload
docdash-document-printing-mvp/src/components/wizard/step-upload.tsx - Print options
docdash-document-printing-mvp/src/components/wizard/step-options.tsx - Delivery address
docdash-document-printing-mvp/src/components/wizard/step-delivery.tsx - Quote and bill
docdash-document-printing-mvp/src/components/wizard/step-bill.tsx - Payment choice
docdash-document-printing-mvp/src/components/wizard/step-payment.tsx - Order confirmation
docdash-document-printing-mvp/src/components/wizard/step-confirm.tsx - Order history
docdash-document-printing-mvp/src/app/orders/page.tsx - Order detail
docdash-document-printing-mvp/src/app/orders/[id]/page.tsx
REST API
- Auth endpoints
docdash-document-printing-mvp/src/app/api/auth/signup/route.ts - Upload endpoints
docdash-document-printing-mvp/src/app/api/uploads/route.ts - Quote endpoint
docdash-document-printing-mvp/src/app/api/pricing/quote/route.ts - Order endpoints
docdash-document-printing-mvp/src/app/api/orders/route.ts
Domain services
- Document processing
docdash-document-printing-mvp/src/server/documents.ts - Page counting
docdash-document-printing-mvp/src/server/pagecount.ts - Session and auth
docdash-document-printing-mvp/src/server/auth.ts - Order service
docdash-document-printing-mvp/src/server/orders.ts - Payment provider
docdash-document-printing-mvp/src/server/payments.ts - File storage
docdash-document-printing-mvp/src/server/storage.ts
Persistence
- PostgreSQL data
docdash-document-printing-mvp/src/db/schema.ts
Shared rules
- Pricing rules
docdash-document-printing-mvp/src/lib/pricing.ts - Request validation
docdash-document-printing-mvp/src/lib/schemas.ts
Other components
- Customer
Connections 30
- Customer → Sign-in screens: signs in
- Customer → Registration: registers
- Customer → Checkout wizard: places order
- Checkout wizard → Document upload: renders
docdash-document-printing-mvp/src/components/wizard/checkout-wizard.tsx - Checkout wizard → Print options: renders
docdash-document-printing-mvp/src/components/wizard/checkout-wizard.tsx - Checkout wizard → Delivery address: renders
docdash-document-printing-mvp/src/components/wizard/checkout-wizard.tsx - Checkout wizard → Quote and bill: renders
docdash-document-printing-mvp/src/components/wizard/checkout-wizard.tsx - Checkout wizard → Payment choice: renders
docdash-document-printing-mvp/src/components/wizard/checkout-wizard.tsx - Checkout wizard → Order confirmation: renders
docdash-document-printing-mvp/src/components/wizard/checkout-wizard.tsx - Document upload → Upload endpoints: uploads files
- Sign-in screens → Auth endpoints: submits credentials
- Registration → Auth endpoints: submits registration
- Checkout wizard → Quote endpoint: requests quote
- Checkout wizard → Order endpoints: places order
- Order endpoints → Order history: serves history
- Order endpoints → Order detail: serves detail
- Upload endpoints → Document processing: processes uploads
- Document processing → Page counting: counts pages
- Document processing → File storage: stores files
- Auth endpoints → Session and auth: authenticates
- Quote endpoint → Pricing rules: computes quote
- Order endpoints → Order service: places and reads
- Order service → Payment provider: requests payment
docdash-document-printing-mvp/src/server/orders.ts - Order service → Pricing rules: recomputes totals
- Order service → PostgreSQL data: persists orders
- Session and auth → PostgreSQL data: reads users
docdash-document-printing-mvp/src/server/auth.ts - Document processing → PostgreSQL data: records documents
- Quote endpoint → Request validation: validates input
- Order endpoints → Request validation: validates input
- File storage → PostgreSQL data: stores metadata