Skip to content

SKcoder6344/CapstoneProject-VarunaApp

 
 

Repository files navigation

Below is a clean, professional, plagiarism-free README.md for your Varuna – Health & Water Quality Monitoring System. After you confirm, I will generate the full 80-page project report (with diagrams, tables, rewritten content).


README.md — Varuna App (Health & Water Quality Monitoring System)

# 🌊 Varuna – Health & Water Quality Monitoring System  
A unified Android application designed to monitor **village water quality**, track **public health reports**, manage **alerts**, and spread **educational awareness**.  
Built using **Android (Kotlin), Firebase Firestore, Firebase Storage**, and **Material UI**.

---

## 📌 Overview  
Varuna is a community-centric mobile application developed to support rural and semi-urban regions by providing:

- Water quality record-keeping  
- Patient health reporting  
- CSV-based bulk water data uploads  
- Real-time alert broadcasting  
- Educational material distribution  
- Village-wise reporting & analytics  

This system is primarily used by **Health Officers**, **ASHA Workers**, and **General Public**.

---

## 🎯 Key Features

### ✔ Village Management  
- Add new villages (role: HealthReport / AshaWorker)  
- Auto-sorted A–Z village list  
- Village-wise navigation

### ✔ Water Quality Tracking  
- Add manual water test tables  
- Upload CSV water quality datasets  
- Automatic real-time update in Firestore  
- Displays EPA standards and custom parameters

### ✔ Health Reporting System  
Each report stores:  
- Patient name, age, gender  
- Symptoms (multi-select)  
- Water-related disease indicators  
- Severity level  
- Start date of symptoms  
- Water source  
- Additional notes  
- Cured / Not Cured status  

Also includes village-wise analytics:  
- Total patients  
- Active cases  
- Cured cases  

### ✔ Alert System  
Health/Asha workers can publish alerts that instantly appear to all users.  
Examples:  
- Contaminated water warnings  
- Disease outbreaks  
- Important health notices  

### ✔ Education Module  
Upload and distribute learning material:  
- PDFs  
- Images  
- Awareness articles (hygiene, sanitation, disease prevention)  
- Automatically fetched from Firestore in real-time  

General users can only **view**, not upload.

---

## 🏛 User Roles & Permissions

| Role | Add Village | Add Water Data | Add Health Report | Upload CSV | Add Education Material | View Data |
|------|-------------|----------------|------------------|------------|------------------------|-----------|
| **General User** |||||||
| **Asha Worker** |||||||
| **HealthReport Officer** |||||||

---

## 📂 Project Structure (Important Modules)

/activities ├── VillageActivity.kt ├── VillageListActivity.kt ├── AddHealthReportActivity.kt ├── HealthReportsListActivity.kt ├── AlertActivity.kt ├── EducationActivity.kt /fragments ├── DashboardFragment.kt ├── WaterQualityFragment.kt ├── HelpRequestsFragment.kt /adapters ├── WaterTableAdapter.kt ├── VillageListAdapter.kt ├── HealthReportAdapter.kt ├── AlertAdapter.kt ├── EducationAdapter.kt /models ├── WaterTestTable.kt ├── WaterParameter.kt ├── HealthReport.kt ├── EducationMaterial.kt


---

## 🔥 Firebase Integration

### ### Firestore Collections
- `/users/{uid}`
- `/villages/{villageName}/water_tables/{id}`
- `/villages/{villageName}/health_reports/{id}`
- `/alerts/{alertId}`
- `/education_materials/{materialId}`

### Firebase Storage
- `education/{timestamp}.pdf`
- `education/{timestamp}.jpg`

---

## 🔐 Firestore Security Rules (Simplified)

```firestore
function isHealthOrAsha() {
  return request.auth != null &&
    get(/databases/$(database)/documents/users/$(request.auth.uid)).data.role in
    ["HealthReport", "AshaWorker"];
}

function isAdmin() {
  return request.auth != null &&
    get(/databases/$(database)/documents/users/$(request.auth.uid)).data.role == "HealthReport";
}

🎨 UI Highlights

  • Full Material 3 design
  • Card-based dashboard
  • Clean forms for health and water reporting
  • Auto-refresh real-time lists with snapshot listeners
  • Visual statistics for health reports

🚀 Future Enhancements

  • AI-based water quality prediction
  • GIS-based village mapping
  • Offline mode with synced uploads
  • Push notifications for alerts
  • Disease outbreak forecasting

🧑‍💻 Tech Stack

  • Android Studio (Kotlin)
  • Firebase Firestore
  • Firebase Storage
  • Material Components
  • RecyclerView / Adapters
  • Navigation Components

📱 Screens Included

  • Login / Signup
  • Dashboard
  • Village List
  • Water Quality
  • Health Report Forms
  • Alert System
  • Education Module
  • Profile Page

🏁 Conclusion

Varuna empowers public health workers and villagers with real-time monitoring tools, ensuring safer water and better health awareness across communities.


👥 Authors

Krishna (Developer) Team Member: Sujal, Sajal, Harsh, Dhrub, Digambar


📜 License

This project is for academic and research purposes.


About

Android app for monitoring village water quality & public health using Firebase — built with Kotlin & Material UI

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Kotlin 100.0%