# LifeLink
LifeLink is a real-time emergency medical assistance platform that helps users find nearby hospitals and ambulances, track emergency transfers, and manage hospital dashboardsβall in real time.
## π οΈ Tech Stack
- **Frontend:** React.js
- **Backend:** Node.js, Express.js
- **Database:** MongoDB
- **Realtime Communication:** Socket.io
- **Map API:** OpenStreetMap Nomination API
## β¨ Features
- π **Nearby Discovery:** Uses coordinates to locate nearby hospitals and ambulances.
- π **Live Ambulance Requests:** Real-time patient transfer requests with Socket.io.
- π₯ **Hospital Dashboard:** Manage bed availability, doctor schedules, and patient queues.
- π **Secure Login System:** Multi-role system for user, hospital, and ambulance drivers.
## π Project Structure
client/ # Frontend (React)
server/ # Backend (Express + MongoDB + Socket.io)
βββ controllers/
βββ models/
βββ routes/
βββ sockets/
βββ Middlware/
βββ Dbconfig/
βββ Uploads/
## π Getting Started
### Prerequisites
- Node.js
- MongoDB
### Setup
```bash
# Clone the repository
git clone https://github.com/rbhavesh1525/LifeLink
# Install frontend dependencies
cd client
npm install
# Install backend dependencies
cd ../server
npm install
# Run frontend and backend (in separate terminals)
npm startπ Future Enhancements
-
π Live ambulance tracking on map
-
π In-app calling for emergencies
-
π Analytics dashboard for hospitals