Logo Lanfrica

victorDim/wsfu-nigeria

Domain:

socioeconomic

Record type:

software
Creator:
vic
Host:
Nigeria citizen accountability news, public spending tracker & corroborated civic briefs # WSFU (Who Swear For Us) πŸ‡³πŸ‡¬ > **Nigeria-focused citizen accountability, news, and government spending platform.** > Built on React/Vite + FastAPI + Supabase (PostgreSQL + `pgvector`), featuring automated RSS aggregation, AI-assisted summarization, FAAC government spending tracking across all 36 States and 774 LGAs, Promise Meters, and FOI Request Generators. --- ## πŸ“ Project Architecture ```text wsfu/ β”œβ”€β”€ backend/ # FastAPI Backend & Background Workers β”‚ β”œβ”€β”€ app/ β”‚ β”‚ β”œβ”€β”€ api/v1/endpoints/ # Feed, FAAC spending, Promises, FOI routes β”‚ β”‚ β”œβ”€β”€ core/ # Settings, Logging, Config β”‚ β”‚ β”œβ”€β”€ db/ # Supabase Client Manager β”‚ β”‚ └── services/ # Trafilatura Extractor, RSS Ingestor, Gemini AI Summarizer β”‚ β”œβ”€β”€ requirements.txt β”‚ β”œβ”€β”€ Dockerfile β”‚ └── main.py β”œβ”€β”€ supabase/ # Database Schemas & Migrations β”‚ └── migrations/ β”‚ β”œβ”€β”€ 001_initial_schema.sql # Core tables & pgvector β”‚ β”œβ”€β”€ 002_rls_policies.sql # Row Level Security β”‚ β”œβ”€β”€ 003_seed_sources.sql # News sources (Punch, Premium Times, etc.) β”‚ └── 004_seed_nigeria_geo.sql # 36 States + 774 LGAs composite keys β”œβ”€β”€ web/ # React 18 + Vite + Tailwind CSS + TypeScript β”‚ β”œβ”€β”€ src/ β”‚ β”‚ β”œβ”€β”€ components/ # Header, NewsCard, FAACExplorer, PromiseTracker, FOIGenerator β”‚ β”‚ β”œβ”€β”€ lib/ # API client & Supabase client β”‚ β”‚ └── types/ # TypeScript interfaces β”‚ β”œβ”€β”€ package.json β”‚ └── vite.config.ts β”œβ”€β”€ scripts/ # Seeder scripts β”‚ └── seed_nigeria_data.py β”œβ”€β”€ .env.example └── docker-compose.yml ``` --- ## πŸš€ Quick Start Guide ### 1. Database Setup (Supabase) 1. Open your Supabase Dashboard. 2. Go to **SQL Editor** $\rightarrow$ **New Query**. 3. You can run the consolidated script in one click: - `supabase/migrations/ALL_IN_ONE_MIGRATION.sql` *(Includes 001 - 010: Core Schema, 36 States + 774 …