Logo Lanfrica

tochiti/naija-arcade

Créateur:
toc
HĂ´te:
A modern web arcade featuring traditional Nigerian games. # 🎮 Naija Arcade - Nigerian Games Collection A modern web arcade featuring traditional Nigerian games, built with Next.js, Supabase, and deployed on Netlify. ## 🌰 Featured Games ### 1. Ayo (Mancala) Traditional Nigerian seed-sowing game. Capture your opponent's seeds by strategic placement. Play against an AI opponent! ### 2. Whot Card Game Nigeria's most popular card game! Match suits and numbers, play wild Whot cards, and be the first to empty your hand. ### 3. Nigerian Trivia Test your knowledge of Nigerian culture, history, geography, music, and more! Features multiple difficulty levels and achievements. ### 4. Ten Ten Fast-paced hand game! Point in the right direction to escape your opponent. Quick reflexes win! ## 🚀 Quick Start ### Prerequisites - Node.js 18+ or Bun - Supabase account (free tier works) - Netlify account (for deployment) ### Local Development ```bash # Clone the repository git clone cd naija-arcade # Install dependencies bun install # Copy environment variables cp .env.example .env.local # Start development server bun run dev ``` Open localhost to play! ## ⚙️ Supabase Setup ### Step 1: Create Supabase Project 1. Go to supabase.com and create a free account 2. Create a new project 3. Note your project URL and API keys from Settings > API ### Step 2: Run SQL Schema Go to SQL Editor in your Supabase dashboard and run the contents of `supabase/schema.sql`: ```sql -- Copy and paste the contents of supabase/schema.sql -- This creates: -- - profiles table (user data) -- - game_scores table (score tracking) -- - achievements table (badges) -- - game_sessions table (analytics) -- - leaderboard view -- - RLS policies for security -- - Triggers for auto-updates ``` ### Step 3: Configure Environment Variables Create `.env.local` with your Supabase credentials: ```env # Supabase Configuration NEXT_PUBLIC_SUPABASE_URL=your-project-id.supabase.co NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key-here SUPABASE_SERVICE_ …