A comprehensive labour monitoring solution built with Next.js and Django, following WHO guidelines for maternal care.
- Real-time labour progress monitoring
- Vital signs tracking
- Medication management
- Supportive care documentation
- Role-based access control
- Dashboard with alerts and statistics
- Next.js 14
- TypeScript
- Tailwind CSS
- Shadcn UI Components
- JWT Authentication
- Django 4.2
- Django REST Framework
- PostgreSQL
- Simple JWT
- CORS support
- Python 3.11+
- Node.js 18+
- PostgreSQL
-
Navigate to the backend directory:
cd backend -
Create a virtual environment:
python -m venv menv source menv/bin/activate # On Windows: menv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Create a
.envfile:SECRET_KEY=your-secret-key DEBUG=True DB_NAME=mamacare DB_USER=postgres DB_PASSWORD=postgres DB_HOST=localhost DB_PORT=5432 -
Run migrations:
python manage.py migrate
-
Start the development server:
python manage.py runserver
-
Navigate to the root directory and install dependencies:
npm install
-
Create a
.env.localfile:NEXT_PUBLIC_API_URL=http://localhost:8000/api -
Start the development server:
npm run dev
mamacare/
├── app/ # Next.js pages and components
├── components/ # Reusable React components
├── lib/ # Utility functions and API client
├── backend/ # Django backend
│ ├── labour_monitor/ # Main Django app
│ └── mamacare/ # Django project settings
└── public/ # Static assets
/api/login/- User authentication/api/register/- User registration/api/patients/- Patient management/api/labour-progress/- Labour progress tracking/api/vital-signs/- Vital signs monitoring/api/medications/- Medication records/api/supportive-care/- Supportive care documentation/api/dashboard/- Dashboard statistics
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
This project is licensed under the MIT License.