Simple traffic prediction dashboard with a Flask backend and React (Vite) frontend.
- api/ — Flask API with
/predictand/health - public/ — Static assets (logo)
- src/ — React components and styles
- package.json — Vite-powered frontend scripts
cd apipython -m venv .venv && .venv\Scripts\activate(Windows)pip install -r requirements.txtpython app.py(runs on http://localhost:5000)
- Install Node.js 18+
- From project root:
npm install npm run dev(runs on http://localhost:3000)
The React app calls the Flask API at http://localhost:5000/predict by default. Override with VITE_API_BASE in a .env file if needed.
- Keep Flask and React served separately or proxy
/predictduring production. - Update CORS settings in
api/app.pyif you restrict origins.
MIT License