An adaptive meal planning and nutrition recommendation system designed initially for middle-class Rwandan households and professionals.
# Adaptive Meal Planning Platform
AI-powered personalized meal planning for Rwandan households. Built with a modular monorepo architecture for rapid iteration and AI-agent-friendly development.
## ποΈ Architecture
```
apps/
api/ β NestJS REST API (port 4000)
web/ β Next.js 15 admin dashboard (port 3000)
mobile/ β Expo React Native app
packages/
types/ β Shared TypeScript interfaces & enums
database/ β Prisma schema & client
shared/ β Common utilities & constants
config/ β Zod-validated environment config
recommendation-engine/ β Rule-based meal scoring
ui/ β Shared UI components (placeholder)
infra/
docker/ β Docker Compose (PostgreSQL + Redis)
```
## π Getting Started
### Prerequisites
- Node.js β₯ 20
- pnpm β₯ 9
- Docker (for PostgreSQL & Redis)
### Setup
```bash
# 1. Install dependencies
pnpm install
# 2. Copy environment variables
cp .env.example .env
# 3. Start databases
docker compose -f infra/docker/docker-compose.yml up -d
# 4. Generate Prisma client
pnpm db:generate
# 5. Push schema to database
pnpm db:push
# 6. Start development servers
pnpm dev
```
### Individual Apps
```bash
pnpm dev:api # Start API only (
localhost)
pnpm dev:web # Start web dashboard only (
localhost)
```
### API Documentation
Swagger UI is available at: `
localhost`
## π½οΈ Key Features
| Feature | Description | Status |
|---------|-------------|--------|
| **Personalized Recommendations** | Rule-based scoring engine (preferences, budget, time, nutrition, history) | β
Phase 1 |
| **Meal Catalog** | Full CRUD with ingredients, nutrition profiles, video references | β
|
| **Feedback System** | Rate meals (1-5), mark as liked/disliked/too expensive/etc. | β
|
| **Weekly Meal Planner** | Calendar-based planner with AI-generated suggestions from recommendations | β
New |
| **Shopping List Generator** | Auto-generate categorized shopping lists from meal pl β¦