Logo Lanfrica

isaacbel/Algerian-talent

Record type:

software
Creator:
isa
Host:
# πŸ† CHAMPION β€” Africa's Sports Revolution A full-stack sports platform built with **Next.js 14** + **PocketBase**, connecting athletes across Algeria and Chad with a roadmap for all 54 African nations. --- ## πŸš€ Quick Start ### 1. Install dependencies ```bash npm install ``` ### 2. Start PocketBase ```bash # Download from pocketbase.io ./pocketbase serve # Admin panel: 127.0.0.1 ``` ### 3. Create collections & seed data ```bash # Set your admin credentials export PB_ADMIN_EMAIL=admin@champion.africa export PB_ADMIN_PASSWORD=yourpassword # Run seeder node scripts/seed-pocketbase.mjs ``` ### 4. Start Next.js dev server ```bash NEXT_PUBLIC_POCKETBASE_URL=127.0.0.1 npm run dev ``` Visit: **http://localhost:3000** > **No PocketBase?** The app works fully with seed data β€” all hooks fall back gracefully. --- ## πŸ“ Project Structure ``` src/ β”œβ”€β”€ app/ # Next.js App Router pages β”‚ β”œβ”€β”€ page.tsx # β†’ Dashboard β”‚ β”œβ”€β”€ leaderboard/ # Rankings with podium β”‚ β”œβ”€β”€ heatmap/ # Interactive SVG heat map β”‚ β”œβ”€β”€ talent/ # Talent discovery engine β”‚ β”œβ”€β”€ bilateral/ # Algeria-Chad challenge β”‚ β”œβ”€β”€ minister/ # Government KPI dashboard β”‚ β”œβ”€β”€ achievements/ # Badges & rewards store β”‚ └── clubs/ # Club portal & expansion β”œβ”€β”€ components/ β”‚ β”œβ”€β”€ ui/ # Button, Card, Tag, Avatar, etc. β”‚ β”œβ”€β”€ charts/ # DonutChart, MonthlyBarChart β”‚ └── layout/ # AppShell (header, nav, footer) β”œβ”€β”€ hooks/ β”‚ └── usePocketBase.ts # Data hooks with PB + fallback β”œβ”€β”€ lib/ β”‚ β”œβ”€β”€ pocketbase.ts # PB client & collection helpers β”‚ └── data.ts # Static seed data & formatters └── types/ └── index.ts # TypeScript interfaces ``` --- ## πŸ”§ Environment Variables ```env NEXT_PUBLIC_POCKETBASE_URL=127.0.0.1 ``` For production, point to your deployed PocketBase instance. --- ## πŸ—ƒοΈ Po …