This project is a full-stack Smart Water Monitoring System consisting of a Flask-based backend and a React-based frontend.
smart_water_monitoring_system/
βββ backend/
β βββ app.py
βββ frontend/
β βββ src/
β βββ App.js
cd smart_water_monitoring_system/backend
# Optional: create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install flask
# Run the backend server
python app.pyThe Flask server will be running at http://localhost:5000.
cd ../frontend
# If not initialized yet, create a React app
npx create-react-app .
# Install dependencies and run the app
npm install
npm startThe React frontend will be accessible at http://localhost:5000.
- Ensure the backend (
Flask) is running before starting the frontend. - The frontend makes requests to
http://localhost:5000/api/water-data. - Add your
water_data.csvfile in thebackend/directory.