Skip to content

SanStart/mamacare

Repository files navigation

MamaCare Labour Monitor

A comprehensive labour monitoring solution built with Next.js and Django, following WHO guidelines for maternal care.

Features

  • Real-time labour progress monitoring
  • Vital signs tracking
  • Medication management
  • Supportive care documentation
  • Role-based access control
  • Dashboard with alerts and statistics

Tech Stack

Frontend

  • Next.js 14
  • TypeScript
  • Tailwind CSS
  • Shadcn UI Components
  • JWT Authentication

Backend

  • Django 4.2
  • Django REST Framework
  • PostgreSQL
  • Simple JWT
  • CORS support

Setup

Prerequisites

  • Python 3.11+
  • Node.js 18+
  • PostgreSQL

Backend Setup

  1. Navigate to the backend directory:

    cd backend
  2. Create a virtual environment:

    python -m venv menv
    source menv/bin/activate  # On Windows: menv\Scripts\activate
  3. Install dependencies:

    pip install -r requirements.txt
  4. Create a .env file:

    SECRET_KEY=your-secret-key
    DEBUG=True
    DB_NAME=mamacare
    DB_USER=postgres
    DB_PASSWORD=postgres
    DB_HOST=localhost
    DB_PORT=5432
    
  5. Run migrations:

    python manage.py migrate
  6. Start the development server:

    python manage.py runserver

Frontend Setup

  1. Navigate to the root directory and install dependencies:

    npm install
  2. Create a .env.local file:

    NEXT_PUBLIC_API_URL=http://localhost:8000/api
    
  3. Start the development server:

    npm run dev

Project Structure

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 Endpoints

  • /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

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

License

This project is licensed under the MIT License.

About

"A comprehensive labour monitoring solution built with Next.js and Django" based on WHO Labour Care Guide

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors