Africa Infrastructure Partners - AIP
# AIP Platform — Africa Infrastructure Partners
## Overview
AIP Platform is an institutional-grade deal origination and due diligence system for African infrastructure investment. It provides PETFEL (Political, Economic, Technical, Financial, Environmental, Legal) due diligence scoring, Executive Investment Note (EIN) generation, AI-powered investor-project matching, and a full deal pipeline with IC governance.
## Stack
| Layer | Technology |
|-------|-----------|
| Frontend | Next.js 16 (App Router), React 19, TypeScript 5.6, Tailwind CSS 4 |
| Backend | FastAPI 0.135, Python 3.11, SQLAlchemy 2, Alembic |
| Auth | Supabase (JWT, OAuth) |
| Database | PostgreSQL via Supabase (prod), SQLite (local/test) |
| Storage | Azure Blob Storage (documents, signed URLs) |
| AI | Anthropic Claude API |
| Monitoring | Sentry (frontend + backend) |
| Deployment | Vercel (frontend), Azure Container Apps (backend) |
## Prerequisites
- Node.js 20+
- Python 3.11+
- Supabase account (for auth)
- Azure account (for storage)
- Vercel account (for frontend deployment)
## Local Development Setup
### Frontend
```bash
git clone
github.com
cd AIP
npm install
cp .env.example .env.local
# Fill in required values (see Environment Variables below)
npm run dev
```
### Backend
```bash
cd AIP
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
cp .env.example .env
# Fill in required values (see Environment Variables below)
alembic upgrade head
uvicorn backend.main:app --reload
```
## Environment Variables
| Variable | Required | Description |
|----------|----------|-------------|
| `DATABASE_URL` | Yes | PostgreSQL connection string |
| `SECRET_KEY` | Yes | JWT signing key — generate with `openssl rand -hex 32` |
| `SUPABASE_URL` | Yes | Supabase project URL |
| `SUPABASE_ANON_KEY` | Yes | Supabase anon/public key |
| `SUPABASE_SERVICE_KEY` | Yes | Supabase service role key (backend only) |
| …