Frontend web app for the Early Eco health platform.
Early Eco UI is designed to help users monitor personal and community health in one place. It provides a secure sign-up/sign-in flow, personalized health dashboards, symptom and vitals check-ins, trend/risk visualization, and location-aware community insights so users can take proactive decisions early.
It includes:
- Auth (sign up / sign in)
- Personalized dashboard after login
- Health check-in flows
- Community health snapshot with map and risk markers
- React 18
- Vite 5
- React Leaflet + Leaflet (community map)
- Node.js 18+ (recommended)
- npm
- Running backend API (default expected at
http://127.0.0.1:8000)
- Clone the repository:
git clone https://github.com/EarlyEco/ui.git
cd ui- Install dependencies:
npm install- Create local environment file:
cp .env.example .env- Update
.envif needed:
BE_BASE_URL=http://127.0.0.1:8000- Start the app:
npm run dev- Open in browser:
http://localhost:5173
Create local env from the example:
cp .env.example .envRequired variable:
BE_BASE_URL- backend base URL
Example:http://127.0.0.1:8000
npm install
npm run devDefault app URL:
http://localhost:5173
npm run dev- start development servernpm run build- production buildnpm run preview- preview production build locally
This project uses Vite output in dist/.
vercel.json already sets:
outputDirectory: "dist"
So Vercel can build and serve without additional output-dir configuration.
src/app.jsx- main application shell and page compositionsrc/components/- UI components (auth, modals, etc.)src/api/- API communication layersrc/styles.css- global styles and responsive rules
- If auth actions fail locally, verify backend is running and
BE_BASE_URLis correct. - For map/geolocation features, browser location permission must be allowed.