Skip to content

Dengue Early-Warning & Monitoring System A comprehensive web-based platform for dengue fever surveillance, prediction, and monitoring using advanced machine learning algorithms and real-time data visualization.

Notifications You must be signed in to change notification settings

nathaesn/den-smart

Repository files navigation

๐ŸฆŸ DEN-Smart

Dengue Early-Warning & Monitoring System

A comprehensive web-based platform for dengue fever surveillance, prediction, and monitoring using advanced machine learning algorithms and real-time data visualization.

Version License React TypeScript Tailwind CSS

๐ŸŒŸ Overview

DEN-Smart is an intelligent early warning system designed to predict and monitor dengue fever outbreaks. The platform combines epidemiological data, environmental factors, and machine learning models to provide accurate predictions and actionable insights for public health officials and healthcare providers.

โœจ Key Features

  • ๐Ÿ”ฎ AI-Powered Predictions - Advanced machine learning models for dengue outbreak forecasting
  • ๐Ÿ“Š Interactive Dashboard - Real-time data visualization and analytics
  • ๐Ÿ—บ๏ธ Geographic Mapping - Interactive maps showing dengue distribution and risk areas
  • ๐Ÿ“ˆ Trend Analysis - Historical data analysis and trend identification
  • ๐Ÿฅ Clinical Integration - Healthcare provider tools and patient management
  • ๐Ÿ“ฑ Responsive Design - Optimized for desktop, tablet, and mobile devices
  • ๐Ÿ”’ Secure & Reliable - Built with modern security practices and performance optimization

๐Ÿš€ Live Demo

Visit the live application: DEN-Smart Demo

๐Ÿ› ๏ธ Technology Stack

Frontend

  • React 18.3.1 - Modern UI library with hooks and concurrent features
  • TypeScript 5.8.3 - Type-safe JavaScript development
  • Vite 6.3.5 - Fast build tool and development server
  • Tailwind CSS 3.4.17 - Utility-first CSS framework
  • React Router 7.9.5 - Client-side routing

Data Visualization

  • Recharts 3.3.0 - Composable charting library
  • Leaflet 1.9.4 - Interactive mapping library
  • React Leaflet 4.2.1 - React components for Leaflet maps

State Management & Utils

  • Zustand 5.0.3 - Lightweight state management
  • React Hook Form 7.65.0 - Performant forms with easy validation
  • Axios 1.13.1 - HTTP client for API requests
  • Date-fns 4.1.0 - Modern JavaScript date utility library
  • Lucide React 0.511.0 - Beautiful & consistent icon library

๐Ÿ“‹ Prerequisites

Before running this project, make sure you have the following installed:

  • Node.js (version 18.0 or higher)
  • npm (version 8.0 or higher) or yarn
  • Git for version control

โšก Quick Start

1. Clone the Repository

git clone https://github.com/your-username/den-smart.git
cd den-smart

2. Install Dependencies

npm install

3. Start Development Server

npm run dev

The application will be available at http://localhost:5173

4. Build for Production

npm run build

5. Preview Production Build

npm run preview

๐Ÿ“ Project Structure

den-smart/
โ”œโ”€โ”€ public/                 # Static assets
โ”‚   โ”œโ”€โ”€ case_dbd/          # Dengue fever case data
โ”‚   โ”œโ”€โ”€ case_dd/           # Dengue death case data
โ”‚   โ”œโ”€โ”€ favicon.svg        # Application favicon
โ”‚   โ”œโ”€โ”€ robots.txt         # SEO robots file
โ”‚   โ””โ”€โ”€ sitemap.xml        # SEO sitemap
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ components/        # Reusable UI components
โ”‚   โ”‚   โ”œโ”€โ”€ ui/           # Base UI components
โ”‚   โ”‚   โ”œโ”€โ”€ Header.tsx    # Navigation header
โ”‚   โ”‚   โ”œโ”€โ”€ Footer.tsx    # Application footer
โ”‚   โ”‚   โ”œโ”€โ”€ Layout.tsx    # Main layout wrapper
โ”‚   โ”‚   โ””โ”€โ”€ SEO.tsx       # SEO meta components
โ”‚   โ”œโ”€โ”€ pages/            # Application pages
โ”‚   โ”‚   โ”œโ”€โ”€ Home.tsx      # Landing page
โ”‚   โ”‚   โ”œโ”€โ”€ Dashboard.tsx # Main dashboard
โ”‚   โ”‚   โ”œโ”€โ”€ Prediction.tsx# Prediction interface
โ”‚   โ”‚   โ”œโ”€โ”€ MapView.tsx   # Geographic visualization
โ”‚   โ”‚   โ”œโ”€โ”€ Clinical.tsx  # Clinical tools
โ”‚   โ”‚   โ”œโ”€โ”€ Data.tsx      # Data management
โ”‚   โ”‚   โ”œโ”€โ”€ About.tsx     # About page
โ”‚   โ”‚   โ”œโ”€โ”€ NotFound.tsx  # 404 error page
โ”‚   โ”‚   โ””โ”€โ”€ ComingSoon.tsx# Coming soon page
โ”‚   โ”œโ”€โ”€ data/             # Data services and adapters
โ”‚   โ”‚   โ”œโ”€โ”€ aiService.ts  # AI/ML service integration
โ”‚   โ”‚   โ”œโ”€โ”€ dbdData.ts    # Dengue data processing
โ”‚   โ”‚   โ””โ”€โ”€ mlService.ts  # Machine learning utilities
โ”‚   โ”œโ”€โ”€ hooks/            # Custom React hooks
โ”‚   โ”œโ”€โ”€ lib/              # Utility functions
โ”‚   โ””โ”€โ”€ assets/           # Static assets
โ”œโ”€โ”€ vercel.json           # Vercel deployment configuration
โ”œโ”€โ”€ tailwind.config.js    # Tailwind CSS configuration
โ”œโ”€โ”€ vite.config.ts        # Vite build configuration
โ””โ”€โ”€ tsconfig.json         # TypeScript configuration

๐ŸŽฏ Available Scripts

Command Description
npm run dev Start development server with hot reload
npm run build Build the project for production
npm run preview Preview the production build locally
npm run lint Run ESLint for code quality checks
npm run check Run TypeScript type checking

๐ŸŒ Deployment

Vercel (Recommended)

This project is optimized for deployment on Vercel:

  1. Connect your GitHub repository to Vercel
  2. Vercel will automatically detect the framework and configure build settings
  3. The vercel.json file ensures proper SPA routing

Manual Deployment

  1. Build the project:

    npm run build
  2. Deploy the dist folder to your hosting provider

๐Ÿ”ง Configuration

Environment Variables

Create a .env file in the root directory for environment-specific configurations:

VITE_API_BASE_URL=https://api.your-domain.com
VITE_MAP_API_KEY=your_map_api_key
VITE_ANALYTICS_ID=your_analytics_id

Vercel Configuration

The project includes a vercel.json file that configures:

  • SPA routing for client-side navigation
  • Proper caching headers for static assets
  • Optimized build settings

๐Ÿ“Š Features Overview

๐Ÿ  Dashboard

  • Real-time dengue case statistics
  • Interactive charts and graphs
  • Key performance indicators
  • Trend analysis and insights

๐Ÿ”ฎ AI Predictions

  • Machine learning-based outbreak predictions
  • Risk assessment algorithms
  • Predictive modeling visualization
  • Confidence intervals and accuracy metrics

๐Ÿ—บ๏ธ Geographic Mapping

  • Interactive dengue case distribution maps
  • Heat maps showing risk areas
  • Geographic clustering analysis
  • Location-based filtering and search

๐Ÿฅ Clinical Tools

  • Patient management interface
  • Case reporting system
  • Clinical decision support
  • Healthcare provider dashboard

๐Ÿ“ˆ Data Management

  • Historical data visualization
  • Data import/export functionality
  • Statistical analysis tools
  • Report generation

๐Ÿ”’ Security & Performance

  • Type Safety: Full TypeScript implementation
  • Code Quality: ESLint configuration with strict rules
  • Performance: Optimized bundle size and lazy loading
  • SEO: Meta tags, sitemap, and robots.txt
  • Accessibility: WCAG 2.1 compliant components
  • Security: Secure headers and content security policy

๐Ÿ“ฑ Browser Support

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Edge (latest)
  • Mobile browsers (iOS Safari, Chrome Mobile)

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

MIT License

Copyright (c) 2024 DEN-Smart

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

๐Ÿ™ Acknowledgments

  • World Health Organization (WHO) - For dengue surveillance guidelines
  • Open Source Community - For the amazing tools and libraries used in this project

Built with โค๏ธ for public health

๐ŸŒ Website

About

Dengue Early-Warning & Monitoring System A comprehensive web-based platform for dengue fever surveillance, prediction, and monitoring using advanced machine learning algorithms and real-time data visualization.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published