An interactive web application that visualizes health facilities across different regions using an interactive map interface. This project helps users locate and explore healthcare facilities with filtering capabilities based on facility types and locations.
- Interactive map visualization using Leaflet.js
- Health facility markers with detailed information
- Filter facilities by type and location
- Color-coded facility markers for easy identification
- Responsive legend showing facility types
- CSV data integration for facility information
- TypeScript - For type-safe JavaScript development
- Vite - Next generation frontend tooling
- Leaflet.js - For interactive maps
- Papa Parse - For CSV parsing
- HTML/CSS - For structure and styling
- Node.js (Latest LTS version recommended)
- npm (comes with Node.js)
-
Clone the repository:
git clone https://github.com/tony-nyagah/health-map.git cd health-map
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Build for production:
npm run build
/src
- Contains the TypeScript source code/public
- Static assets/data
- CSV data files for health facilitiesindex.html
- Main HTML entry pointvite.config.js
- Vite configurationtsconfig.json
- TypeScript configuration
The application is built using TypeScript and Vite for a modern development experience. It uses Leaflet.js for map rendering and Papa Parse for handling CSV data. The project follows a modular structure for better maintainability and scalability.
To create a production build:
npm run build
This will generate a dist
directory with the production-ready files.
This project is licensed under the MIT License - see the LICENSE file for details.