Skip to content

ihep-platform/ihep.app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

22 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

IHEP Platform

Open in GitHub Codespaces Version License

The Integrated Health Engagement Platform (IHEP) is a Next.js-based healthcare aftercare platform with digital twin technology, wellness tracking, and financial empowerment tools.

πŸš€ Quick Start

New to the project? See GETTING_STARTED.md for all setup options.

Option 1: GitHub Codespaces (Recommended)

The fastest way to get started is with GitHub Codespaces:

  1. Click the "Open in GitHub Codespaces" badge above
  2. Wait for the environment to set up (2-3 minutes)
  3. Update DATABASE_URL in .env.local
  4. Run npm run dev

See CODESPACES_SETUP.md for detailed instructions.

Option 2: Local Development

# Clone the repository
git clone https://github.com/ihep-platform/ihep.app.git
cd ihep.app

# Run the setup script
bash scripts/dev-setup.sh

# Validate your setup
bash scripts/validate-setup.sh

# Start the development server
npm run dev

Open http://localhost:5000 with your browser.

πŸ“š Documentation

πŸ› οΈ Tech Stack

  • Framework: Next.js 16.1.5 with App Router
  • Language: TypeScript 5 (strict mode)
  • UI: React 19, Tailwind CSS 4, shadcn/ui
  • Database: PostgreSQL with Drizzle ORM
  • Authentication: NextAuth.js v4
  • Testing: Vitest + React Testing Library (113+ tests)
  • Security: Post-Quantum Cryptography (Kyber, ML-DSA)
  • 3D Graphics: Three.js for Digital Twin visualization
  • Deployment: GCP Cloud Run with Docker

πŸ—οΈ Project Structure

ihep.app/
β”œβ”€β”€ src/                    # Main application code
β”‚   β”œβ”€β”€ app/               # Next.js App Router pages
β”‚   β”œβ”€β”€ components/        # React components
β”‚   β”œβ”€β”€ lib/              # Utilities and client logic
β”‚   β”œβ”€β”€ hooks/            # Custom React hooks
β”‚   └── shared/           # Shared schemas and types
β”œβ”€β”€ .devcontainer/        # GitHub Codespaces configuration
β”œβ”€β”€ scripts/              # Helper scripts
β”œβ”€β”€ public/               # Static assets
└── docs/                 # Additional documentation

πŸ§ͺ Development Commands

# Validation
bash scripts/validate-setup.sh  # Verify your setup is correct

# Development
npm run dev              # Start dev server (uses webpack for Three.js compatibility)
npm run dev:turbo        # Start dev server with Turbopack

# Building & Testing
npm run build            # Production build
npm run start            # Start production server
npm run check            # TypeScript type checking
npm run lint             # ESLint
npm test                 # Run tests
npm run test:watch       # Run tests in watch mode

# Database
npm run db:push          # Push schema changes to database
npm run db:studio        # Open Drizzle Studio
npm run db:generate      # Generate migrations
npm run db:migrate       # Run migrations

πŸ” Environment Variables

Copy .env.example to .env.local and configure:

# Required
NEXTAUTH_URL=http://localhost:5000
NEXTAUTH_SECRET=<generated-secret>
DATABASE_URL=postgresql://user:password@host:port/database

# Optional
GOOGLE_CLIENT_ID=<your-google-client-id>
GITHUB_CLIENT_ID=<your-github-client-id>
SENTRY_DSN=<your-sentry-dsn>

Generate secrets with: bash scripts/generate-secrets.sh

🚒 Deployment

The platform is configured for deployment to GCP Cloud Run. See DEPLOYMENT.md for detailed instructions.

Before deploying to production, review PRODUCTION_CHECKLIST.md.

πŸ§‘β€πŸ’» Contributing

This project uses:

  • Conventional Commits for commit messages
  • ESLint for code quality
  • TypeScript strict mode
  • Vitest for testing

See CLAUDE.md for AI assistance attribution.

πŸ“„ License

See LICENSE file for details.

πŸ†˜ Support

πŸ“ˆ Project Status

Version: 2.0.0
Status: Production-ready foundation, database connection required

See TODO.md for current tasks and PROJECT_SUMMARY.md for detailed project information.