How jagdevs646/everjoy-lawndry works
Everjoy Lawndry replaces paper laundry registers and slips with a shared web/mobile system for students, counter staff, and administrators. Students sign in or register, place and track laundry orders, and retain a digital slip; staff accept and return laundry, while administrators configure rules and review reports. The server separates role-specific routes from order, account, and reporting logic, backed by workspace-scoped SQLite or Postgres storage. The README documents the user capabilities and shared app; unsampled screens and route internals are represented only at their known module boundaries.
Main entry points: app.ts HTTP Application · db.ts SQLite or Postgres · main.tsx Client Entry · admin.tsx Administration
Components 32
Web and Mobile Client
- Client Entry
client/main.tsx - Sign-in and Registration
client/auth.tsx - Student Laundry
client/student.tsx - Staff Counter
client/staff.tsx - Administration
client/admin.tsx - Operations
client/ops.tsx - Retail Counter
client/retail-counter.tsx - Shift Close
client/shift-close.tsx - Manager Reports
client/manager-stats.tsx - API Client
client/api.ts - Interface Languages
client/i18n.ts
Server and Workflows
- HTTP Application
server/app.ts - Public and Auth Routes
server/routes/public.ts - Student Routes
server/routes/student.ts - Operations Routes
server/routes/ops.ts - Admin Routes
server/routes/admin.ts - Retail Routes
server/routes/retail.ts - Shift-Close Routes
server/routes/shift-close.ts - Identity and Sessions
server/auth.ts - Email Verification
server/otp.ts - Email Delivery
server/mail.ts
Laundry Domain
- Order Rules and Lifecycle
server/rules.ts - Order Queries
server/queries.ts - Laundry Sign-off
server/signoff.ts - Customer Accounts
server/customer-accounts.ts - Workspace Management
server/workspaces.ts - Manager Metrics
server/manager-metrics.ts - Campus Invoices
server/campus-invoices.ts
Workspace Data
- SQLite or Postgres
server/db.ts - Workspace Context
server/workspace-context.ts - Complaint Files
server/files.ts
Other components
- Students, Staff, Admin
Connections 44
- Students, Staff, Admin → Client Entry: use
README.md - Client Entry → Sign-in and Registration: renders
client/main.tsx - Client Entry → Student Laundry: routes to
client/main.tsx - Client Entry → Staff Counter: routes to
client/main.tsx - Client Entry → Administration: routes to
client/main.tsx - Student Laundry → API Client: requests
- Staff Counter → API Client: requests
- Administration → API Client: requests
client/admin.tsx - Administration → Operations: renders
client/admin.tsx - Administration → Retail Counter: renders
client/admin.tsx - Administration → Shift Close: renders
client/admin.tsx - Administration → Manager Reports: renders
client/admin.tsx - Manager Reports → API Client: requests metrics
client/manager-stats.tsx - Client Entry → Interface Languages: initializes
client/main.tsx - API Client → HTTP Application: calls
- HTTP Application → Public and Auth Routes: mounts
server/app.ts - HTTP Application → Student Routes: mounts
server/app.ts - HTTP Application → Retail Routes: mounts
server/app.ts - HTTP Application → Operations Routes: mounts
server/app.ts - HTTP Application → Shift-Close Routes: mounts
server/app.ts - HTTP Application → Admin Routes: mounts
server/app.ts - Public and Auth Routes → Identity and Sessions: authenticates
server/routes/public.ts - Public and Auth Routes → Email Verification: starts challenge
server/routes/public.ts - Public and Auth Routes → Customer Accounts: registers customers
server/routes/public.ts - Student Routes → Order Rules and Lifecycle: uses order rules
server/routes/student.ts - Student Routes → Order Queries: reads orders
server/routes/student.ts - Student Routes → Laundry Sign-off: uses sign-off
server/routes/student.ts - Student Routes → Complaint Files: handles files
server/routes/student.ts - Operations Routes → Customer Accounts: issues claims
server/routes/ops.ts - Operations Routes → Order Queries: reads complaints
server/routes/ops.ts - Admin Routes → Manager Metrics: serves reports
server/routes/admin.ts - Admin Routes → Order Queries: reads announcements
server/routes/admin.ts - Retail Routes → Order Rules and Lifecycle: uses order rules
server/routes/retail.ts - Retail Routes → Laundry Sign-off: uses sign-off
server/routes/retail.ts - Manager Reports → Manager Metrics: requests metrics
client/manager-stats.tsx - Manager Metrics → SQLite or Postgres: queries
server/manager-metrics.ts - Order Rules and Lifecycle → SQLite or Postgres: reads and writes
server/rules.ts - Order Queries → SQLite or Postgres: queries
server/queries.ts - Identity and Sessions → SQLite or Postgres: loads accounts
server/auth.ts - Customer Accounts → SQLite or Postgres: persists accounts
server/customer-accounts.ts - Workspace Management → SQLite or Postgres: persists workspaces
server/workspaces.ts - SQLite or Postgres → Workspace Context: scopes SQL reads
server/db.ts - Email Verification → Email Delivery: sends codes
server/otp.ts - Email Verification → Identity and Sessions: uses identity
server/otp.ts