Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aquaflow — Wastewater Compliance Platform

Real-time IoT monitoring + AI breach prediction + automated compliance reporting

Demo

[Live Demo Link] | [Pitch Video Link]

Quick Start

Prerequisites

  • Node.js 20+
  • Python 3.11+
  • PostgreSQL 15+

1. Clone & Install

git clone https://github.com/Amogh-007-Rin/aquaflow
cd aquaflow\client
npm install
cd ..\ai-engine
pip install -r requirements.txt

2. Database Setup

cd client
copy .env.local.example .env.local
npm run prisma:generate
npm run prisma:push
npm run prisma:seed

3. Start Services

# Terminal 1 — AI Engine
cd ai-engine
uvicorn main:app --reload --port 8000

# Terminal 2 — Frontend
cd client
npm install
npm run dev

Architecture

  • Frontend: Next.js App Router + TypeScript + Tailwind CSS + Recharts + React Leaflet
  • Backend: FastAPI + APScheduler + prediction engine + report generation
  • Data: Prisma/Postgres for application data
  • Realtime: SSE stream proxied through Next.js API route

Compliance Parameters

Section 82 thresholds are defined in client/lib/constants.ts and cover pH, COD, BOD, TSS, temperature, ammonia, and heavy metals.

API Reference

  • FastAPI docs: http://localhost:8000/docs
  • Frontend API routes: client/app/api

About

ᴀqᴜᴀꜰʟᴏᴡ ɪꜱ ᴀ ꜰᴜʟʟ-ꜱᴛᴀᴄᴋ ᴘʟᴀᴛꜰᴏʀᴍ ᴛʀᴀɴꜱꜰᴏʀᴍɪɴɢ ᴇɴᴠɪʀᴏɴᴍᴇɴᴛᴀʟ ᴛʀᴀᴄᴋɪɴɢ ɪɴᴛᴏ ᴘʀᴏᴀᴄᴛɪᴠᴇ ʙʀᴇᴀᴄʜ ᴘʀᴇᴠᴇɴᴛɪᴏɴ. ʙᴜɪʟᴛ ᴀꜱ ᴀ ʜɪɢʜ-ᴘᴇʀꜰᴏʀᴍᴀɴᴄᴇ ᴀᴘᴘʟɪᴄᴀᴛɪᴏɴ, ɪᴛ ꜱᴛʀᴇᴀᴍꜱ ʟɪᴠᴇ ᴍᴜʟᴛɪ-ᴘᴀʀᴀᴍᴇᴛᴇʀ ɪᴏᴛ ᴅᴀᴛᴀ ᴠɪᴀ ꜰᴀꜱᴛᴀᴘɪ ꜱꜱᴇ ᴛᴏ ᴀ ɴᴇxᴛ.ᴊꜱ 14 ᴅᴀꜱʜʙᴏᴀʀᴅ, ᴜꜱɪɴɢ ᴀ ᴅᴜᴀʟ-ʟᴀʏᴇʀ ᴀɪ ᴇɴɢɪɴᴇ ᴛᴏ ꜰᴏʀᴇᴄᴀꜱᴛ ᴄᴏᴍᴘʟɪᴀɴᴄᴇ ʀɪꜱᴋꜱ ʙᴇꜰᴏʀᴇ ᴛʜᴇʏ ᴍᴀɴɪꜰᴇꜱᴛ. ᴜꜱᴇꜱ ᴀᴘᴀᴄʜᴇ ᴀɪʀꜰʟᴏᴡ ꜰᴏʀ ᴅᴀᴛᴀ ᴀᴜᴛᴏᴍᴀᴛɪᴏɴ

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages