How krezzy88/capstone-project works
Wealthy Eater is a nutrition HealthTech platform connecting customers and nutritionists through mobile clients, an admin dashboard, and a Node API. The main workflow is user authentication and profile/dietary setup, meal-plan generation and tracking, then expert consultation and payment; AI optimization, food-image/pantry automation, recipes, shopping, and administration are distinct capabilities. The mobile app’s Dart source is absent from the supplied tree, so mobile behavior is represented only as documented clients. Several subsystem links below rely on README documentation because their implementing source was not sampled.
Main entry points: mealPlan.controller.js Meal Planning · app.js Express API · database.js MongoDB · pages Admin Management
Components 24
Clients
- Mobile App
- Admin Dashboard
wealthy-eater-admin/src/App.jsx - Admin Management
wealthy-eater-admin/src/pages
Backend API
- Express API
wealthy_eater_backend/src/app.js - Authentication
wealthy_eater_backend/src/services/auth.service.js
Nutrition Services
- Meal Planning
wealthy_eater_backend/src/controllers/mealPlan.controller.js - AI Optimizers
wealthy-eater-ai/app/services - Meal Tracking
wealthy_eater_backend/src/controllers/mealPlan.controller.js - Recipe Catalog
wealthy_eater_backend/src/controllers/admin.recipe.controller.js - Smart Pantry
wealthy_eater_backend/src/services/pantry.service.js - Shopping Lists
wealthy_eater_backend/src/services/shopping_list.service.js - Consultation Chat
wealthy_eater_backend/src/services/chat.service.js - Nutrition Chatbot
wealthy_eater_backend/src/services/user.chatbot.service.js
Platform Operations
- Payment Flow
wealthy_eater_backend/src/config/payos.config.js - Analytics
wealthy_eater_backend/src/services/analytics.service.js - Admin Operations
wealthy_eater_backend/src/controllers
Persistence and Integrations
- MongoDB
wealthy_eater_backend/src/config/database.js - Redis Cache
wealthy_eater_backend/src/utils/redisClient.js - Firebase Push
wealthy_eater_backend/src/config/firebase.js - Gemini Vision
wealthy_eater_backend/src/services/gemini.service.js - n8n Automation
wealthy_eater_backend/src/services/n8n.service.js - PayOS
Other components
- Customer
- Nutritionist
Connections 30
- Customer → Mobile App: uses
README.md - Nutritionist → Mobile App: uses
README.md - Mobile App → Express API: REST and sockets
README.md - Admin Dashboard → Admin Management: routes to
wealthy-eater-admin/src/App.jsx - Admin Dashboard → Express API: REST requests
README.md - Admin Management → Admin Operations: administers
README.md - Express API → Authentication: serves auth
- Express API → Meal Planning: routes requests
- Meal Planning → AI Optimizers: requests optimization
README.md - Express API → Recipe Catalog: routes admin recipes
wealthy_eater_backend/src/app.js - Recipe Catalog → MongoDB: reads and writes
wealthy_eater_backend/src/controllers/admin.recipe.controller.js - Meal Planning → MongoDB: reads and writes
wealthy_eater_backend/src/controllers/mealPlan.controller.js - Meal Planning → Redis Cache: caches previews
wealthy_eater_backend/src/controllers/mealPlan.controller.js - Meal Planning → Gemini Vision: uses vision service
wealthy_eater_backend/src/controllers/mealPlan.controller.js - Meal Planning → Meal Tracking: supports logs
README.md - Meal Planning → Shopping Lists: generates lists
README.md - Mobile App → Smart Pantry: scans pantry
README.md - Smart Pantry → n8n Automation: invokes workflows
README.md - n8n Automation → Gemini Vision: analyzes images
README.md - n8n Automation → MongoDB: syncs pantry
README.md - Mobile App → Consultation Chat: chats live
README.md - Mobile App → Nutrition Chatbot: asks questions
README.md - Mobile App → Payment Flow: starts payment
README.md - Payment Flow → PayOS: creates payment link
README.md - PayOS → Express API: sends webhook
README.md - Payment Flow → Firebase Push: sends confirmation
README.md - Admin Management → Analytics: views analytics
README.md - Admin Operations → MongoDB: manages records
- Express API → AI Optimizers: HTTP optimization
README.md - AI Optimizers → Meal Planning: returns plan