23016300/Limpopo-ems

GitHub: 23016300/Limpopo-ems

Stars: 0 | Forks: 0

\# 🚨 Limpopo Emergency Management System (Limpopo-EMS) \[!\[License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) \[!\[React](https://img.shields.io/badge/React-19-61DAFB?logo=react)](https://react.dev) \[!\[Node.js](https://img.shields.io/badge/Node.js-20-339933?logo=nodedotjs)](https://nodejs.org) \[!\[PostgreSQL](https://img.shields.io/badge/PostgreSQL-15-4169E1?logo=postgresql)](https://www.postgresql.org) \--- \## 📸 Screenshots | Admin Dashboard | Police Dashboard | Citizen Interface | | ---------------------------- | ------------------------------ | -------------------------------- | | !\[Admin](AdminDashboard.jpg) | !\[Police](PoliceDashBoard.jpg) | !\[Citizen](CitizenDashboard.jpg) | \--- \## ✨ Features \- 🔐 Multi-role authentication (Admin, Police, Ambulance, Traffic, Hospital, Citizen) \- 📍 Real-time GPS tracking with Mapbox GL JS \- 🚑 Smart dispatch system with proximity-based unit recommendation \- 📊 Analytics dashboard with incident trends and response metrics \- 🏥 Hospital integration with real-time bed availability \- 🔔 Real-time notifications via Socket.io \- 📱 Fully responsive design for mobile, tablet, and desktop \--- \## 🏗️ Tech Stack \*\*Frontend:\*\* React 19, Vite, Tailwind CSS, Mapbox GL JS, Socket.io Client, Axios, Recharts \*\*Backend:\*\* Node.js, Express.js, PostgreSQL, Socket.io, JWT, bcryptjs \*\*Tools:\*\* Git, GitHub, ESLint, Prettier, dotenv \--- \## 📁 Project Structure limpopo-ems/ ├── client/ # React frontend │ ├── src/ │ │ ├── components/ │ │ ├── config/ │ │ ├── hooks/ │ │ ├── App.jsx │ │ └── main.jsx │ ├── package.json │ └── vite.config.js ├── server/ # Node.js backend │ ├── routes/ │ ├── middleware/ │ ├── socket/ │ ├── db.js │ ├── schema.sql │ ├── index.js │ └── package.json ├── .gitignore ├── README.md └── LICENSE \## 🚀 Getting Started \### Prerequisites \- Node.js v18+ \- PostgreSQL v14+ \- npm or yarn \- Mapbox Access Token (free at mapbox.com) \### Installation 1\. Clone the repo: git clone https://github.com/23016300/Limpopo-ems.git cd Limpopo-ems 2\. Install dependencies: cd server \&\& npm install cd ../client \&\& npm install 3\. Create `server/.env`: DATABASE\_URL=postgresql://user:pass@localhost:5432/limpopo\_ems JWT\_SECRET=your\_secret\_key PORT=5000 MAPBOX\_TOKEN=your\_mapbox\_token 4\. Create `client/.env`: VITE\_MAPBOX\_TOKEN=your\_mapbox\_token VITE\_API\_URL=http://localhost:5000/api 5\. Setup database: cd server psql -U your\_username -d limpopo\_ems -f schema.sql 6\. Start servers: \# Terminal 1: Backend cd server \&\& npm run dev \# Terminal 2: Frontend cd client \&\& npm run dev
标签:自定义脚本