How dev-adeshina/small-pudo works
Pudoless combines a product storefront and order/payment flow with customer shipment quoting, a PUDO partner network, and staff-managed commercial operations. The clearest evidenced workflows are product discovery through cart and checkout, and authenticated shipment quotation through readiness checks and pricing evaluation. Staff and PUDO capabilities are represented from the repository tree, but their runtime connections are not asserted where source excerpts do not show them.
Main entry points: route.ts Shipment Quotes · page.tsx Storefront · firebase.ts Firebase Client · firebase-admin.ts Firebase Admin
Components 24
Storefront & Orders
- Storefront
app/page.tsx - Product Catalog
app/products/page.tsx - Cart State
context/cart-context.tsx - Checkout
app/checkout/page.tsx - Order Creation
app/api/orders/route.ts - Payment Initialization
app/api/payments/initialize/route.ts - Payment Verification
app/api/payments/verify/route.ts
Shipping & Quotes
- Customer Account
app/account/shipments/page.tsx - Shipment Quotes
app/api/account/shipment-quotes/route.ts - Quote Store
lib/server/shipment-quote-store.ts - Parcel Classification
lib/server/commercial-parcel-input-core.ts - PUDO Locations
app/staff/pudo-locations/page.tsx - PUDO Verification
app/staff/pudo-verifications/page.tsx - Partner Portal
app/pudo-partner/page.tsx
Commercial Operations
- Quotation Readiness
lib/server/commercial-quotation-readiness-core.ts - Pricing Engine
lib/server/commercial-pricing-engine-core.ts - Pricing Approval UI
app/staff/commercial-pricing-definitions/page.tsx - Route Evidence
lib/server/commercial-route-distance-input-core.ts - Operational Costs
app/staff/operational-cost-definitions/page.tsx
Identity & Data
- Firebase Client
lib/firebase.ts - Firebase Admin
lib/firebase-admin.ts - Customer Authentication
lib/server/customer-auth.ts
Other components
- Shopper
- Paystack
Connections 19
- Shopper → Storefront: browses
app/page.tsx - Storefront → Product Catalog: links to
app/page.tsx - Storefront → Firebase Client: loads categories
app/page.tsx - Product Catalog → Firebase Client: loads products
app/products/page.tsx - Shopper → Cart State: adds items
context/cart-context.tsx - Checkout → Cart State: reads cart
app/checkout/page.tsx - Checkout → Firebase Client: uses client data
app/checkout/page.tsx - Order Creation → Firebase Admin: reads and writes
app/api/orders/route.ts - Payment Initialization → Firebase Admin: reads order
app/api/payments/initialize/route.ts - Payment Initialization → Paystack: initializes payment
app/api/payments/initialize/route.ts - Payment Verification → Paystack: verifies transaction
app/api/payments/verify/route.ts - Payment Verification → Firebase Admin: updates order
app/api/payments/verify/route.ts - Shipment Quotes → Customer Authentication: authenticates customer
app/api/account/shipment-quotes/route.ts - Shipment Quotes → Quote Store: lists quotes
app/api/account/shipment-quotes/route.ts - Shipment Quotes → Quotation Readiness: checks eligibility
app/api/account/shipment-quotes/route.ts - Shipment Quotes → Pricing Engine: evaluates pricing
app/api/account/shipment-quotes/route.ts - Shipment Quotes → Parcel Classification: builds parcel inputs
app/api/account/shipment-quotes/route.ts - Pricing Approval UI → Pricing Engine: configures pricing
- Customer Account → Shipment Quotes: requests quotes