New AI-Enabled Community Platform for African Continental Free Trade Agreement (AfCFTA)
# AfricaTrade.ai 🌍
**AI-Enabled Community Platform for the African Continental Free Trade Agreement (AfCFTA)**
A full-stack Next.js 14 application enabling African businesses, governments, and financial institutions to exchange trade information, find partners, generate intelligence reports, and accelerate continental trade under AfCFTA.
---
## ✨ Modules
| Module | Description |
|--------|-------------|
| **User & Identity Management** | Registration, login, role-based access (business, bank, liaison, admin) |
| **Business Directory** | Register, search, and filter exporters, importers, manufacturers, logistics, banks across Africa |
| **Trade Intelligence AI** | Claude-powered chatbot for AfCFTA tariffs, RoO, compliance, NTBs, documentation |
| **Trade Matchmaking** | AI-scored buyer/seller matching across 54 AfCFTA member states |
| **Trade Report Generator** | Structured reports: tariffs, compliance, logistics, AfCFTA benefits — downloadable |
| **Liaison Office Dashboard** | Government analytics, business monitoring, AI policy recommendations |
---
## 🛠 Tech Stack
| Layer | Technology |
|-------|-----------|
| Framework | Next.js 14 (App Router) |
| Language | TypeScript |
| Database | Supabase (PostgreSQL) |
| Auth | Supabase Auth |
| AI | Anthropic Claude (claude-sonnet-4) |
| Styling | Pure CSS (custom design system) |
| Deployment | Vercel (recommended) |
---
## 🚀 Quick Start
### 1. Clone & Install
```bash
git clone
cd africatrade
npm install
```
### 2. Create Supabase Project
1. Go to supabase.com and create a free project
2. Go to **SQL Editor** and run the entire contents of `supabase/schema.sql`
3. In **Authentication → URL Configuration**, add your site URL and set:
- Site URL: `
localhost`
- Redirect URLs: `
localhost`
### 3. Configure Environment Variables
Copy `.env.local` and fill in your values:
```bash
cp .env.local .env.local.example # keep the template
```
Edit `.env.local`:
```env
NEXT_PU …