How gattuso649/kitz works
KitCulture is a React storefront backed by an Express API and PostgreSQL; its main customer journey runs from browsing kits through account access and checkout to order and payment handling. The repository also contains a distinct MarketHub marketplace application and a laundry booking module, alongside administrator and operations capabilities. The README documents several workflows whose detailed implementation was not sampled, so those are represented at subsystem level; edges are limited to documented relationships or references in the supplied source index.
Main entry points: database.ts Database connection · app.ts Express API · App.tsx Storefront UI · routes.ts Orders and checkout
Components 25
Customer storefront
- Storefront UI
src/App.tsx - Shop pages
src/pages/ShopPages.tsx - Customer portal
src/pages/CustomerPortalPages.tsx - Store API client
platform/src/api.ts
Commerce API
- Express API
server/src/app.ts - Customer authentication
server/src/modules/auth/routes.ts - Product catalogue
server/src/modules/catalogue/routes.ts - Orders and checkout
server/src/modules/orders/routes.ts - Accounts and support
server/src/modules/account/routes.ts - Daraja payments
server/src/modules/orders/daraja.ts
MarketHub marketplace
- Marketplace interface
platform/src/App.tsx - Marketplace routes
platform/server/src/modules/marketplace/routes.ts - Marketplace administration
platform/server/src/modules/admin/marketplace-routes.ts - Marketplace payments
platform/server/src/modules/payments/routes.ts - Marketplace email
platform/server/src/modules/email/service.ts - Marketplace database
platform/server/src/database/schema.ts
Administration operations
- Laundry bookings
server/src/modules/laundry/routes.ts - Administrator workflows
server/src/modules/admin/routes.ts - Operations console
server/src/modules/operations/routes.ts - Security scanning
server/src/modules/security/scanner-engine.ts
Runtime infrastructure
- Commerce database
server/src/database/schema.ts - Database connection
server/src/config/database.ts - Session middleware
server/src/middleware/authenticate.ts - Shared rate limiting
server/src/security/distributed-rate-limit.ts
Other components
- Customer
Connections 29
- Customer → Storefront UI: uses
README.md - Storefront UI → Shop pages: renders
src/App.tsx - Storefront UI → Customer portal: renders
src/App.tsx - Storefront UI → Store API client: requests data
src/App.tsx - Store API client → Express API: calls API
README.md - Express API → Customer authentication: mounts routes
server/src/app.ts - Express API → Product catalogue: mounts routes
server/src/app.ts - Express API → Orders and checkout: mounts routes
server/src/app.ts - Express API → Accounts and support: mounts routes
server/src/app.ts - Customer authentication → Session middleware: uses sessions
server/src/modules/auth/routes.ts - Accounts and support → Session middleware: authenticates
server/src/modules/account/routes.ts - Orders and checkout → Session middleware: authenticates
server/src/modules/orders/routes.ts - Customer authentication → Database connection: reads and writes
server/src/modules/auth/routes.ts - Product catalogue → Database connection: reads catalogue
server/src/modules/catalogue/routes.ts - Orders and checkout → Database connection: reads and writes
server/src/modules/orders/routes.ts - Accounts and support → Database connection: reads and writes
server/src/modules/account/routes.ts - Database connection → Commerce database: configures schema
server/src/config/database.ts - Orders and checkout → Daraja payments: initiates payment
server/src/modules/orders/routes.ts - Customer → Marketplace interface: uses
- Marketplace interface → Marketplace routes: requests marketplace
- Marketplace routes → Marketplace database: reads and writes
platform/server/src/modules/marketplace/routes.ts - Marketplace administration → Marketplace database: reads and writes
platform/server/src/modules/admin/marketplace-routes.ts - Marketplace administration → Marketplace email: queues messages
platform/server/src/modules/admin/marketplace-routes.ts - Marketplace payments → Marketplace database: reads and writes
platform/server/src/modules/payments/routes.ts - Laundry bookings → Database connection: reads and writes
server/src/modules/laundry/routes.ts - Administrator workflows → Database connection: uses database
server/src/modules/admin/routes.ts - Operations console → Database connection: uses database
server/src/modules/operations/routes.ts - Operations console → Security scanning: loads scan results
server/src/modules/operations/routes.ts - Express API → Shared rate limiting: configures limiting
server/src/app.ts