SmartDoc is a mobile-first health platform designed for Nigeria’s healthcare system, leveraging AI to automate patient history intake, follow-up, and telehealth.
SmartDoc is a mobile-first health platform designed for Nigeria’s healthcare system, leveraging AI to automate patient history intake, follow-up, and telehealth. This repository contains the **frontend** of SmartDoc, built with **Vite** and **React**, providing intuitive interfaces for patients (via WhatsApp and mobile app) and doctors (via web portal and mobile app). It supports offline functionality, multilingual processing (Yoruba, Hausa, Igbo, Pidgin), and integrates with a FastAPI backend powered by Llama AI.
## Table of Contents
- Features
- Tech Stack
- Prerequisites
- Setup Instructions
- Project Structure
- Available Scripts
- Environment Variables
- Contributing
- Contributors
- License
- Contact
## Features
- **Patient Interface**:
- WhatsApp chatbot integration for text/voice input of symptoms/history.
- Mobile app (React-based) for logging health metrics (e.g., blood sugar) with offline caching.
- Multilingual support for Yoruba, Hausa, Igbo, and Pidgin.
- **Doctor Interface**:
- Web portal for reviewing AI-generated patient summaries and updating diagnoses.
- Mobile app for on-the-go access.
- **Telehealth**:
- Video/audio consultations via WebRTC/Jitsi.
- **Offline Support**:
- Local caching using IndexedDB for low-connectivity areas (36% broadband access in Nigeria).
- **Accessibility**:
- Optimized for Nigeria’s 70% mobile penetration, supporting low-end devices.
## Tech Stack
- **Framework**: React (v18)
- **Build Tool**: Vite (v5)
- **Language**: JavaScript (ES6+)
- **Styling**: CSS Modules / Tailwind CSS (optional)
- **State Management**: React Context or Redux (TBD)
- **API Client**: Axios for django backend integration
- **Offline Storage**: IndexedDB (via Dexie.js)
- **Telehealth**: Jitsi Meet SDK
- **Linting/Formatting**: ESLint, Prettier
## Prerequisites
Ensure you have the following installed:
- **Node.js** (v16 or higher): Download
- **npm** (v8 or higher, comes with Node.js) or **yarn** (optional)
- **Git**: Download
- A modern browse …