A blockchain-powered healthcare platform providing affordable insurance, medical aid, and community support for underserved patients in Kenya. Built with React, TypeScript, and Firebase, featuring M-Pesa payment integration for seamless donations and insurance contributions.
# TibaTrust - Healthcare Insurance Platform
A modern, blockchain-powered healthcare insurance platform designed specifically for Kenyans. TibaTrust provides affordable, transparent, and accessible medical coverage through community-driven support and innovative technology.
## 🏥 Features
### Core Functionality
- **User Registration & Authentication** - Secure account creation with Firebase
- **Insurance Plans** - Multiple coverage options tailored for different needs
- **Claims Management** - Easy claim submission and tracking system
- **M-Pesa Integration** - Seamless mobile money payments for premiums and donations
- **Multi-language Support** - Available in English and Swahili
- **Responsive Design** - Works perfectly on desktop and mobile devices
### Payment Integration
- **M-Pesa STK Push** - Direct mobile payments
- **Real-time Status Tracking** - Automatic payment confirmation
- **Donation System** - Community support through contributions
### User Experience
- **Dashboard** - Personalized user portal
- **Claims Tracking** - Monitor claim status in real-time
- **Community Features** - Connect with other members
- **Educational Content** - Learn about healthcare and insurance
## 🚀 Technology Stack
- **Frontend**: React 18 + TypeScript + Vite
- **Styling**: Tailwind CSS + shadcn/ui components
- **Authentication**: Firebase Auth
- **Payments**: M-Pesa Daraja API
- **Deployment**: Vercel (Frontend + Serverless Functions)
- **State Management**: React Context API
- **Routing**: React Router DOM
## 🛠️ Development Setup
### Prerequisites
- Node.js 18+ and npm
- Git
### Installation
1. **Clone the repository**
```bash
git clone
github.com
cd TibaTrust
```
2. **Install dependencies**
```bash
npm install
```
3. **Environment Setup**
Create a `.env` file in the root directory:
```env
MPESA_CONSUMER_KEY=your_mpesa_consumer_key
MPESA_CONSUMER_SECRET=your_mpesa_consumer_secret
MPESA_SHORTCODE=your_shortcode
MPESA_PASSKEY=your …