How dharshinimk-521/printready works
PrintReady AI lets customers upload artwork for vendor-specific analysis, scoring, image conversion, and print-ready PDF generation; customers can review job history, while shop printers manage a shop-scoped job queue. The graph follows the upload and printer workflows and includes authentication, templates, and storage. Backend calls are supported by sampled controller and route references; frontend component wiring is supported by the source index and README. Unsampled implementation details are represented only where the README documents the capability.
Main entry points: App.jsx React App · jobController.js Job Workflow · api.js API Client · UploadPage.jsx Upload Page
Components 25
Customer and Printer UI
- React App
frontend/src/App.jsx - Upload Page
frontend/src/pages/UploadPage.jsx - Upload Controls
frontend/src/components/DropZone.jsx - Template Selector
frontend/src/components/TemplateSelector.jsx - Upload Hook
frontend/src/hooks/useUpload.js - Results View
frontend/src/components/ResultCard.jsx - Job History
frontend/src/pages/HistoryPage.jsx - Printer Dashboard
frontend/src/pages/PrinterDashboard.jsx - Login and Register
frontend/src/components/AuthModal.jsx - Auth State
frontend/src/hooks/useAuth.js - API Client
frontend/src/api.js
API and Access
- Express Server
backend/server.js - Job Routes
backend/routes/jobs.js - Printer Routes
backend/routes/printer.js - Auth Routes
backend/routes/auth.js - Authentication
backend/controllers/authController.js - JWT Access Control
backend/middleware/auth.js - Job Workflow
backend/controllers/jobController.js
Print Processing
- Analyze and Score
backend/services/imageService.js - Vendor Specifications
backend/services/vendorTemplates.js - Print PDF
backend/services/pdfService.js
Persistence and Files
- PostgreSQL
backend/config/db.js - Azure Blob Storage
backend/config/azure.js
Other components
- Customer
- Print Shop
Connections 33
- Customer → React App: uses
README.md - Print Shop → React App: uses
README.md - React App → Upload Page: routes to
frontend/src/App.jsx - React App → Job History: routes to
frontend/src/App.jsx - React App → Printer Dashboard: routes to
frontend/src/App.jsx - React App → Login and Register: opens
frontend/src/App.jsx - React App → Auth State: uses
frontend/src/App.jsx - Upload Page → Upload Controls: renders
frontend/src/pages/UploadPage.jsx - Upload Page → Template Selector: renders
frontend/src/pages/UploadPage.jsx - Upload Page → Results View: renders
frontend/src/pages/UploadPage.jsx - Upload Page → Upload Hook: uses
frontend/src/pages/UploadPage.jsx - Upload Hook → API Client: sends requests
frontend/src/hooks/useUpload.js - Template Selector → API Client: fetches specs
frontend/src/components/TemplateSelector.jsx - Job History → API Client: fetches history
frontend/src/pages/HistoryPage.jsx - Printer Dashboard → API Client: manages jobs
frontend/src/pages/PrinterDashboard.jsx - Login and Register → API Client: authenticates
frontend/src/components/AuthModal.jsx - API Client → Express Server: calls API
README.md - Express Server → Job Routes: mounts
backend/server.js - Express Server → Auth Routes: mounts
backend/server.js - Express Server → Printer Routes: mounts
backend/server.js - Job Routes → Job Workflow: dispatches
backend/routes/jobs.js - Job Routes → JWT Access Control: applies
backend/routes/jobs.js - Printer Routes → Job Workflow: dispatches
backend/routes/printer.js - Printer Routes → JWT Access Control: applies
backend/routes/printer.js - Auth Routes → Authentication: dispatches
backend/routes/auth.js - Auth Routes → JWT Access Control: protects
backend/routes/auth.js - Authentication → PostgreSQL: reads and writes
backend/controllers/authController.js - JWT Access Control → PostgreSQL: looks up users
backend/middleware/auth.js - Job Workflow → Vendor Specifications: gets specifications
backend/controllers/jobController.js - Job Workflow → Analyze and Score: analyzes and processes
backend/controllers/jobController.js - Job Workflow → Print PDF: generates PDF
backend/controllers/jobController.js - Job Workflow → Azure Blob Storage: stores files
backend/controllers/jobController.js - Job Workflow → PostgreSQL: records and queries jobs
backend/controllers/jobController.js