How nirmalcs10/ssctechcare works
SSC TechCare is a repair-shop management application. Staff use the React workspace to intake devices, manage repair stages and parts, track customers, and invoice jobs; customers can separately look up repair progress. The documented workflow spans intake, diagnosis/quotation, repair and testing, pickup, and billing. The tree also contains a Cloudflare Worker API implementation alongside the Express backend; the excerpts show their entry points and database layers, but not how deployments select between them.
Main entry points: index.js REST client · server.js Express API · database.js SQLite / PostgreSQL · App.jsx Workspace router
Components 34
Staff Workspace
- Workspace router
client/src/App.jsx - REST client
client/src/api/index.js - Device intake
client/src/components/NewTicketModal.jsx - Ticket workbench
client/src/pages/TicketDetail.jsx - Ticket views
client/src/pages/Tickets.jsx - Workshop board
client/src/pages/KanbanBoard.jsx - Public tracker
client/src/pages/PublicTrack.jsx - Job sheet
client/src/components/PrintJobCard.jsx - Tax invoice print
client/src/components/PrintInvoice.jsx
Repair Operations
- Ticket operations
server/src/routes/tickets.js - Tracking lookup
server/src/routes/tracking.js
Shop Management
- Inventory workspace
client/src/pages/Inventory.jsx - Customer directory
client/src/pages/Customers.jsx - Billing workspace
client/src/pages/Invoices.jsx - Revenue reporting
client/src/components/RevenueModal.jsx - Workshop dashboard
client/src/pages/Dashboard.jsx - Technician management
client/src/pages/Technicians.jsx - Shop settings
client/src/pages/Settings.jsx - Staff sign-in
client/src/pages/MainLogin.jsx
API and Persistence
- Express API
server/src/server.js - Authentication
server/src/routes/auth.js - Customer operations
server/src/routes/customers.js - Inventory operations
server/src/routes/inventory.js - Invoice operations
server/src/routes/invoices.js - Dashboard metrics
server/src/routes/dashboard.js - Revenue operations
server/src/routes/revenue.js - Technician operations
server/src/routes/technicians.js - Settings operations
server/src/routes/settings.js - SQLite / PostgreSQL
server/src/db/database.js - Cloudflare Worker
src/index.js - Worker API routes
src/api/routes.js - D1 schema and helpers
src/db/d1.js
Other components
- Shop staff
- Customer
Connections 46
- Shop staff → Workspace router: uses
README.md - Workspace router → Device intake: opens
client/src/App.jsx - Workspace router → Ticket workbench: routes to
client/src/App.jsx - Workspace router → Ticket views: routes to
client/src/App.jsx - Workspace router → Workshop board: routes to
client/src/App.jsx - Workspace router → Public tracker: routes to
client/src/App.jsx - Device intake → REST client: submits via
client/src/components/NewTicketModal.jsx - Ticket workbench → REST client: requests via
client/src/pages/TicketDetail.jsx - Ticket views → REST client: requests via
- Workshop board → REST client: requests via
- Public tracker → REST client: requests via
- Ticket workbench → Job sheet: prints
client/src/App.jsx - Ticket workbench → Tax invoice print: prints
client/src/App.jsx - Customer → Public tracker: checks progress
README.md - REST client → Express API: sends API requests
- Express API → Authentication: mounts
server/src/server.js - Express API → Ticket operations: mounts
server/src/server.js - Express API → Tracking lookup: mounts
server/src/server.js - Express API → Customer operations: mounts
server/src/server.js - Express API → Inventory operations: mounts
server/src/server.js - Express API → Invoice operations: mounts
server/src/server.js - Express API → Dashboard metrics: mounts
server/src/server.js - Express API → Revenue operations: mounts
server/src/server.js - Express API → Technician operations: mounts
server/src/server.js - Express API → Settings operations: mounts
server/src/server.js - Ticket operations → SQLite / PostgreSQL: queries
server/src/routes/tickets.js - Tracking lookup → SQLite / PostgreSQL: queries
server/src/routes/tracking.js - Authentication → SQLite / PostgreSQL: queries
server/src/routes/auth.js - Customer operations → SQLite / PostgreSQL: queries
server/src/routes/customers.js - Inventory operations → SQLite / PostgreSQL: queries
server/src/routes/inventory.js - Invoice operations → SQLite / PostgreSQL: queries
server/src/routes/invoices.js - Dashboard metrics → SQLite / PostgreSQL: queries
server/src/routes/dashboard.js - Revenue operations → SQLite / PostgreSQL: queries
server/src/routes/revenue.js - Settings operations → SQLite / PostgreSQL: queries
server/src/routes/settings.js - Inventory workspace → REST client: requests via
client/src/pages/Inventory.jsx - Customer directory → REST client: requests via
- Billing workspace → REST client: requests via
client/src/pages/Invoices.jsx - Billing workspace → Revenue reporting: opens
client/src/pages/Invoices.jsx - Billing workspace → Tax invoice print: prints
- Workshop dashboard → REST client: requests via
- Technician management → REST client: requests via
client/src/pages/Technicians.jsx - Shop settings → REST client: requests via
client/src/pages/Settings.jsx - Staff sign-in → REST client: authenticates via
client/src/pages/MainLogin.jsx - Cloudflare Worker → Worker API routes: dispatches API
src/index.js - Cloudflare Worker → D1 schema and helpers: initializes schema
src/index.js - Worker API routes → D1 schema and helpers: queries and authenticates
src/api/routes.js