Welcome to AquaGen Web Application Documentation
Welcome to the comprehensive documentation for the AquaGen Web Application - a modern water management platform built with cutting-edge technologies.
What is AquaGen?
AquaGen is an enterprise-grade water management solution that helps organizations monitor, analyze, and optimize their water resources. Built with React 19, Material-UI 7, and Nx monorepo architecture, it provides real-time monitoring, AI-powered insights, and comprehensive water sustainability tracking.
Quick Navigation
Getting Started
New to AquaGen? Start here to set up your development environment and understand the platform.
- Introduction - Overview of the documentation structure
- Platform Overview - What AquaGen does and its key features
- Installation - Step-by-step setup guide
Architecture
Understand the technical architecture and design decisions behind AquaGen.
- Architecture Diagrams - Visual overview of the system
- Micro-Frontend Architecture - Nx monorepo and Module Federation
- State Management - Global and feature-level state
- API Call Flow - Complete flow from UI to API and back
- Standard Categories - Category types, services, and data organization
Features
Learn about the key features and how they work.
- Application Routes - Complete routing reference
- Authentication - Login methods and SSO
- Permissions - Access control and RBAC
- Dashboard - Centralized overview with consumption, quality, and sustainability metrics
- Leadership Dashboard - Executive multi-site monitoring with KPI tracking
- Water Flow Monitoring - Real-time flow monitoring and leakage detection
- Water Quality Monitoring - Quality parameter tracking with threshold alerts
- Water Stock Levels - Storage tank monitoring and capacity tracking
- Ground Water Level - Borewell and aquifer level monitoring
- AquaGPT - AI-powered chatbot for natural language water data queries
- Alerts & Notifications - Real-time alert monitoring and resolution
- Account Management - User profiles, settings, SSO configuration, and manual data entry
- True Cost of Water - Financial analysis with raw water, energy, and chemical cost breakdown
- HMI Interface - Human-Machine Interface for device monitoring and control
- Energy Monitoring - Comprehensive energy consumption tracking and efficiency analysis
- AquaGen Labs - Laboratory test results management and compliance tracking
- Water Usage Ratio - Production-specific water consumption and efficiency metrics
- AquaAI - AI-powered predictive analytics, anomaly detection, and forecasting
- Demo AquaGPT - Demo and trial version of AquaGPT for evaluation
- Additional Features - SCADA, Water Sustainability, Reports, and more
Development
Resources for developers working on AquaGen.
- Commands Reference - All npm scripts and Nx commands
- Deployment Guide - Build and deploy to Firebase
- Component Library - Reusable UI components
- Utilities - Helper functions and utilities
API Reference
Documentation for API integration and services.
- API & Services - HTTP client, endpoints, and services
- Enums & Configuration - Constants, enums, and config files
Key Features
Real-Time Monitoring
- Live water flow rates and quality metrics
- Ground water level tracking
- Multi-node data visualization
- Historical trend analysis
AI-Powered Insights
- AquaGPT - Natural language queries about water data
- Anomaly detection
- Predictive analytics
- Intelligent recommendations
Water Sustainability
- Water balance calculations
- Water neutrality tracking
- Rain Water Index (RWI)
- Urban Water Index (UWI)
- Water Risk Index (WRI)
- Ground Water Index (GWI)
Enterprise Features
- Role-based access control (33+ permissions)
- Multi-tenant support
- SCADA editor and viewer
- HMI interface
- Advanced reporting and analytics
Technology Stack
| Category | Technologies |
|---|---|
| Frontend | React 19, Material-UI 7, TypeScript 5.7 |
| Build Tools | Nx 21, Rspack 1.3, Module Federation |
| State Management | React Context, Custom Hooks |
| Visualization | Chart.js, Recharts, Plotly.js, Leaflet |
| Authentication | Azure MSAL, Google OAuth |
| Testing | Jest, Cypress, Playwright |
| Deployment | Firebase Hosting, Capacitor (Mobile) |
| Monitoring | Sentry, Mixpanel, Google Analytics 4 |
Learning Paths
For New Developers
- Read Platform Overview to understand AquaGen
- Follow Installation Guide to set up your environment
- Review Commands Reference to learn essential commands
- Study Architecture Diagrams for visual overview
- Start coding!
For Frontend Developers
- Explore Component Library for reusable components
- Learn State Management patterns
- Check Routes Documentation for navigation
- Review Permissions for access control
For Backend/API Developers
- Review API & Services for integration points
- Understand Authentication flow
- Check API endpoints and request/response formats
For DevOps Engineers
- Study Deployment Guide for Firebase hosting
- Review Commands Reference for build scripts
- Understand environment configuration and CI/CD
Project Structure
aquagen_web_appp/
├── apps/ # Applications
│ ├── production/ # Main production app
│ └── demo/ # Demo app
├── libs/ # Feature libraries (27+)
│ ├── dashboard/ # Dashboard module
│ ├── monitoring/ # Monitoring module
│ ├── energy/ # Energy module
│ ├── aquagpt/ # AI-powered insights
│ ├── shared/ # Shared utilities
│ ├── components/ # Reusable UI components
│ └── ... (20+ more)
├── docs/ # Documentation
├── package.json # Dependencies and scripts
├── nx.json # Nx workspace config
└── firebase.json # Firebase hosting config
Getting Help
- GitHub Issues: Report bugs or request features
- Documentation: Search this documentation for answers
- Code Comments: Check inline comments for implementation details
Contributing
AquaGen follows modern development practices:
- Branching: Feature branches from
main - Code Review: All changes require review
- Testing: Unit tests for critical functionality
- Linting: ESLint and Prettier for code quality
- Documentation: Update docs with code changes
Next Steps
Choose your path based on your role:
- Developers: Start with Installation
- Architects: Read Micro-Frontend Architecture
- DevOps: Check Deployment Guide
- Product Managers: Review Platform Overview
Ready to get started? Head to the Installation Guide to set up your development environment!
Last Updated: February 2026 Maintained By: AquaGen Development Team