How rodrigonunes2004/catercalcpro works
CaterCalc Pro is a catering-management web application. Users enter through the React app, authenticate, and use recipe, menu, event, inventory, and prep-list workflows; the server exposes corresponding API routes backed by shared schemas and database storage. The README also documents shopping lists, cost analysis, analytics, and billing, so those capabilities remain visible even where their implementation was not sampled. Edges follow excerpts, the source index, or README statements; uncertain route-to-storage wiring is omitted.
Main entry points: App.tsx Routes and providers · index.ts Route registry · storage.ts Database operations · auth.ts Authentication routes
Components 22
Web application
- React entry
src/main.tsx - Routes and providers
src/App.tsx - Authentication state
src/contexts/AuthContext.tsx - UI primitives
src/components/ui
Catering workflows
- Recipe management
src/components/RecipeManager.tsx - Menu management
src/components/MenuManager.tsx - Event planning
src/pages/EventsPage.tsx - Inventory management
src/pages/InventoryPage.tsx - Prep and shopping lists
src/components/PrepListGenerator.tsx - Analytics
src/pages/AnalyticsPage.tsx - Billing
src/pages/BillingPage.tsx
API and access
- Serverless API entry
api/index.ts - Route registry
server/routes/index.ts - Authentication routes
server/routes/auth.ts - Recipe and menu routes
server/routes/recipes.ts - Prep-list routes
server/routes/prepLists.ts - Billing routes
server/routes/billing.ts - Token and password logic
server/lib/auth.ts
Persistence and services
- Pricing engine
server/services/pricingEngine.ts - Database operations
server/storage.ts - Shared data schema
shared/schema.ts
Other components
- Caterer
Connections 29
- Caterer → React entry: uses
README.md - React entry → Routes and providers: renders
src/main.tsx - Routes and providers → Authentication state: provides
src/App.tsx - Routes and providers → Recipe management: routes to
src/App.tsx - Routes and providers → Menu management: routes to
src/App.tsx - Routes and providers → Event planning: routes to
src/App.tsx - Routes and providers → Inventory management: routes to
src/App.tsx - Routes and providers → Prep and shopping lists: routes to
src/App.tsx - Routes and providers → Analytics: routes to
src/App.tsx - Routes and providers → Billing: routes to
src/App.tsx - Recipe management → UI primitives: renders with
src/components/RecipeManager.tsx - Menu management → UI primitives: renders with
src/components/MenuManager.tsx - Serverless API entry → Route registry: registers
api/index.ts - Route registry → Authentication routes: registers
server/routes/index.ts - Route registry → Recipe and menu routes: registers
server/routes/index.ts - Route registry → Prep-list routes: registers
server/routes/index.ts - Route registry → Billing routes: registers
server/routes/index.ts - Authentication routes → Token and password logic: uses
server/routes/auth.ts - Authentication routes → Database operations: uses auth storage
- Prep-list routes → Database operations: uses
- Recipe and menu routes → Database operations: uses
- Pricing engine → Database operations: reads data
server/services/pricingEngine.ts - Database operations → Shared data schema: uses schema
server/storage.ts - Caterer → Recipe management: manages recipes
README.md - Caterer → Event planning: plans events
README.md - Caterer → Inventory management: tracks stock
README.md - Caterer → Prep and shopping lists: generates lists
README.md - Caterer → Analytics: reviews performance
README.md - Caterer → Billing: manages plan