Backend for CareLink Zambia MVP
# CareLink Zambia MVP - Healthcare Gig Platform
A comprehensive healthcare staffing platform connecting healthcare providers with medical facilities in Zambia.
## 🚀 Features
### Core Functionality
- **Gig Application Workflow**: Complete end-to-end application process
- **Role-Based Access Control**: Separate interfaces for clinics and healthcare providers
- **Real-time Notifications**: Instant updates on application status changes
- **Application Management**: Accept/reject applications with audit logging
- **Dashboard Analytics**: Comprehensive stats and insights for clinics
### Security & Performance
- JWT-based authentication with role-based authorization
- Rate limiting and input validation
- Audit logging for all critical actions
- Responsive design for mobile and desktop
- Error handling and user feedback throughout
## 🏗️ Architecture
### Backend (Node.js/Express)
```
backend/
├── controllers/
│ └── applicationController.js # Application management logic
├── middleware/
│ └── auth.js # Authentication & authorization
├── models/
│ └── Application.js # Application data model
├── routes/
│ └── applications.js # API endpoints
└── server.js # Main server file
```
### Frontend (React)
```
frontend/src/
├── components/
│ ├── Applications.jsx # Application management interface
│ ├── GigDetail.jsx # Gig details with application status
│ ├── Navbar.jsx # Navigation component
│ └── NotificationSystem.jsx # Real-time notifications
├── hooks/
│ ├── useApplications.js # Application management logic
│ └── useAuth.js # Authentication logic
├── pages/
│ └── ClinicDashboard.jsx # Clinic dashboard with analytics
└── utils/
├── api.js # API configuration
└── helpers.js # Utility functions
```
## 📋 API Endpoints
### Application Management
- `POST /api/applications/gigs/:gigId/apply` - …