Vaccine Supply Chain Analytics Platform for Nigeria
# VaxTrace Nigeria
> Vaccine Supply Chain Analytics Dashboard for OpenLMIS
VaxTrace Nigeria is a high-level analytics dashboard designed to sit atop the existing OpenLMIS infrastructure. It transforms raw logistical data into actionable insights for decision-makers at the National, State, and LGA levels.
## π― Core Value Proposition
- **Eliminate Blind Spots**: Real-time visibility into stockouts before they happen
- **Quality Assurance**: Digital tracking of VVM (Vaccine Vial Monitor) status and temperature excursions
- **Operational Efficiency**: Automated calculation of replenishment needs based on actual consumption
## ποΈ Architecture
```
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Frontend Layer β
β Next.js 14 (App Router) + Mapbox GL JS + PWA (Offline-First) β
ββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β API Gateway (NestJS) β
β Middleware Orchestrator β’ Redis Cache β’ Protobuf Encoding β
ββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββ
β
ββββββββββ΄βββββββββ
βΌ βΌ
ββββββββββββββββββββ βββββββββββββββββββ
β PostgreSQL + β β OpenLMIS β
β PostGIS (GEO) β β REST API β
ββββββββββββββββββββ βββββββββββββββββββ
```
## π Quick Start
### Prerequisites
- Node.js 18+ and npm 9+
- Docker and Docker Compose
- Git
### Installation
1. **Clone the repository**
```bash
git clone
github.com
cd vaxtrace-nigeria
```
2. **Copy environment file**
```bash
cp .env.example .env
```
3. **Edit `.env` with your configuration**
- Set strong passwords for PostgreSQL and Redis
- Configure OpenLMIS API credentials
- Set encryption keys for AES-256
4. **Start infrastructure services**
```bash
docker-compose up -d postgres redis
```
5. **Install dependencies**
```bash β¦