Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

SmartFlood V3 Vite

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.

Architecture

  • 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.

Client Setup

cd SmartFlood-V3-Vite/client
npm install
npm run dev

Copy .env.example to .env and set:

VITE_API_BASE_URL=http://localhost:4000

Server Setup

cd SmartFlood-V3-Vite/server
npm install
npm run dev

Copy .env.example to .env and fill in the MongoDB Atlas, Supabase, session, and AI backend values.

The server exposes:

  • GET /api/health
  • POST /api/ai/recommendations/generate

Current Scope

This is the base working shell only. Dashboard, residents, sensors, logs, account management, and full relief modules have not been migrated yet.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages