Skip to content

techisigu/health_watchers

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

241 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Health Watchers

Note: Replace OWNER in the badge URLs below with your GitHub username or organization name.

CI Status codecov License: MIT Node Version npm Version

A HIPAA-compliant healthcare management platform built with Next.js, Express, and Stellar blockchain integration for secure patient data management and payment processing.

Features

  • πŸ₯ Patient management with comprehensive health records
  • πŸ“… Medical encounter tracking and documentation
  • πŸ’³ Blockchain-based payment processing via Stellar
  • πŸ” HIPAA-compliant authentication and authorization
  • 🌐 Internationalization support (English, French)
  • 🎨 Modern, accessible UI with Tailwind CSS
  • πŸ”„ Real-time data synchronization with React Query

Tech Stack

  • Frontend: Next.js 14, React 18, TypeScript, Tailwind CSS
  • Backend: Express.js, Node.js, TypeScript
  • Database: MongoDB
  • Blockchain: Stellar (testnet/mainnet)
  • Authentication: JWT with refresh tokens
  • Monorepo: npm workspaces with Turbo

Getting Started

Prerequisites

  • Node.js >= 18.0.0
  • npm 10.9.2
  • Docker and Docker Compose (for quickstart)
  • MongoDB (or use Docker)

5-Minute Quickstart with Docker Compose

The fastest way to get Health Watchers running locally:

# 1. Clone the repository
git clone https://github.com/OWNER/health-watchers.git
cd health-watchers

# 2. Copy environment configuration
cp .env.example .env

# 3. Start all services with Docker Compose
docker-compose up -d

# 4. Wait for services to be ready (about 30 seconds)
docker-compose logs -f

# 5. Access the application
# Web UI: http://localhost:3000
# API: http://localhost:3001

The Docker setup includes:

  • MongoDB database with automatic initialization
  • API server with hot-reload
  • Web frontend with hot-reload
  • Pre-configured networking between services

To stop all services:

docker-compose down

Manual Setup

If you prefer to run services individually:

# 1. Install dependencies
npm install

# 2. Set up environment variables
cp .env.example .env
# Edit .env with your configuration

# 3. Start MongoDB (if not using Docker)
# macOS: brew services start mongodb-community
# Linux: sudo systemctl start mongod
# Windows: net start MongoDB

# 4. Seed the database (optional)
npm run seed

# 5. Start development servers
npm run dev

This will start:

Project Structure

health-watchers/
β”œβ”€β”€ apps/
β”‚   β”œβ”€β”€ api/              # Express.js REST API
β”‚   β”œβ”€β”€ web/              # Next.js frontend application
β”‚   └── stellar-service/  # Stellar blockchain integration
β”œβ”€β”€ packages/             # Shared packages (types, utils)
β”œβ”€β”€ scripts/              # Database seeding and utilities
β”œβ”€β”€ .env.example          # Environment configuration template
└── docker-compose.yml    # Docker orchestration

Development

Available Scripts

npm run dev      # Start all apps in development mode
npm run build    # Build all apps for production
npm run start    # Start all apps in production mode
npm run lint     # Run linting across all apps
npm run seed     # Seed database with sample data

Environment Variables

See .env.example for a complete list of required environment variables. Key variables include:

  • MONGO_URI - MongoDB connection string
  • JWT_ACCESS_TOKEN_SECRET - JWT signing secret
  • STELLAR_NETWORK - Stellar network (testnet/mainnet)
  • GEMINI_API_KEY - Google Gemini API for AI features
  • NEXT_PUBLIC_API_URL - API endpoint for frontend

Security & Compliance

Health Watchers is designed with HIPAA compliance in mind:

  • πŸ”’ End-to-end encryption for sensitive data
  • πŸ”‘ Secure JWT-based authentication
  • πŸ“ Comprehensive audit logging
  • πŸ”„ Regular security updates and dependency scanning
  • πŸ›‘οΈ Input validation and sanitization
  • πŸ” Secrets management with AWS Secrets Manager support

For detailed security guidelines, see SECURITY.md.

Testing

# Run all tests
npm test

# Run tests with coverage
npm run test:coverage

# Run tests in watch mode
npm run test:watch

Deployment

Docker Production Deployment

# Build production images
docker-compose -f docker-compose.prod.yml build

# Start production services
docker-compose -f docker-compose.prod.yml up -d

Manual Production Deployment

# Build all applications
npm run build

# Start production servers
npm run start

Contributing

We welcome contributions! Please follow these steps:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

For questions, issues, or feature requests:

Acknowledgments

  • Built with Next.js
  • Blockchain integration powered by Stellar
  • UI components inspired by modern design systems
  • HIPAA compliance guidance from healthcare industry standards

Made with ❀️ by the Health Watchers team

About

No description, website, or topics provided.

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 94.9%
  • JavaScript 3.8%
  • Other 1.3%