This folder is the MERN-hybrid adaptation of SmartFlood. It starts a new React + Vite frontend and an Express + Node backend while preserving the existing SmartFlood data architecture.
SmartFlood-V3/ remains untouched and should be treated as read-only reference material.
client/contains the React + Vite + TypeScript shell.server/contains the Express + Node + TypeScript API shell.- MongoDB Atlas remains the data source for sensors and sensor readings.
- Supabase remains the data source for app users, residents, families, applications, relief data, logs, and recommendations.
- The deployed Heroku FastAPI AI backend remains untouched.
- The Express backend proxies AI recommendation generation to the deployed FastAPI backend.
cd SmartFlood-V3-Vite/client
npm install
npm run devCopy .env.example to .env and set:
VITE_API_BASE_URL=http://localhost:4000cd SmartFlood-V3-Vite/server
npm install
npm run devCopy .env.example to .env and fill in the MongoDB Atlas, Supabase, session, and AI backend values.
The server exposes:
GET /api/healthPOST /api/ai/recommendations/generate
This is the base working shell only. Dashboard, residents, sensors, logs, account management, and full relief modules have not been migrated yet.