Data Lorry Nigeria is a comprehensive open-data platform aggregating Nigerian socioeconomic, political, and demographic datasets into a single, accessible resource for researchers, journalists, policymakers, and civic technologists.
# Clarion State Map πΊοΈ
A sophisticated GIS-driven platform for interactive visualization of Nigeria's states, local governments, and real-time insights.
## π Overview
Clarion State Map project is designed to provide a highly interactive and performance-optimized mapping experience. It bridges complex geographic data (GeoJSON) with a modern, responsive frontend, allowing users to explore regional data with ease.
## ποΈ Architecture
The project is structured as a monorepo containing two main components:
- **`/frontend`**: A modern React application built with TypeScript and Vite. It features interactive SVG maps, dynamic state cards, and a premium editorial-style UI.
- **`/backend`**: A Python-based FastAPI service responsible for GIS processing, GeoJSON extraction, and serving optimized spatial data.
## π Getting Started
### Prerequisites
- **Node.js** (v18 or higher)
- **npm** or **yarn**
- **Python 3.10+**
- **pip**
### 1. Backend Setup
```bash
cd backend
python -m venv .venv
source .venv/bin/activate # On Windows use `.venv\Scripts\activate`
pip install -r requirements.txt
python main.py
```
### 2. Frontend Setup
```bash
cd frontend
npm install
npm run dev
```
The application will be available at `
localhost`.
## π Repository Structure
```text
clarion_state_map/
βββ backend/ # FastAPI GIS Engine
β βββ data/ # Processed GeoJSON & SVG data
β βββ generators/ # Geometry processing logic
β βββ main.py # Entry point
βββ frontend/ # React + TS + Vite App
β βββ src/
β β βββ components/ # Reusable UI components
β β βββ pages/ # Application views
β β βββ styles/ # Design tokens & CSS
β βββ package.json
βββ README.md # You are here
```
## π οΈ Key Technologies
- **Frontend**: React 19, TypeScript, Vite, Tailwind CSS, React Router.
- **Backend**: FastAPI, GeoPandas/Shapely (for GIS), Uvicorn.
- **Design**: Custom CSS-in-JS patterns, premium typ β¦