๐Ÿš€ Digital Entrepreneurship Hub - Empowering African Youth ๐ŸŒ

![Platform Banner](https://images.unsplash.com/photo-1559136555-9303baea8ebd?w=800&h=300&fit=crop&crop=center) ### ๐ŸŽฏ Bridging the Digital Divide Through Innovation and Education [![Safaricom](https://img.shields.io/badge/Safaricom-00A651?style=for-the-badge&logo=safaricom)](https://www.safaricom.co.ke/) [![M-Pesa](https://img.shields.io/badge/M--Pesa-00A651?style=for-the-badge&logo=safaricom)](https://www.safaricom.co.ke/personal/m-pesa) [![React](https://img.shields.io/badge/React-18.3.1-61DAFB?style=for-the-badge&logo=react)](https://reactjs.org/) [![TypeScript](https://img.shields.io/badge/TypeScript-5.0-3178C6?style=for-the-badge&logo=typescript)](https://www.typescriptlang.org/) [![Supabase](https://img.shields.io/badge/Supabase-3ECF8E?style=for-the-badge&logo=supabase)](https://supabase.io/) [![Tailwind CSS](https://img.shields.io/badge/Tailwind_CSS-38B2AC?style=for-the-badge&logo=tailwind-css)](https://tailwindcss.com/) ## [LIVE DEMO](https://digital-skill-stride.vercel.app/) ## [PitchDeck Link](https://www.canva.com/design/DAGbveGXJnY/55m9qXseYamV03SZASmnzg/edit?utm_content=DAGbveGXJnY&utm_campaign=designshare&utm_medium=link2&utm_source=sharebutton)

๐ŸŒŸ Overview

Welcome to the Digital Entrepreneurship Hub - a comprehensive platform designed specifically for African youth to learn, grow, and succeed in the digital economy! ๐ŸŽ“โœจ

Our platform combines cutting-edge technology with local payment solutions (M-Pesa) to provide accessible digital education and opportunities across Africa. ๐ŸŒ๐Ÿ’ก


โœจ Key Features

๐ŸŽ“ Learning & Development

  • ๐Ÿ“š Digital Courses - Comprehensive course library with both free and premium content
  • ๐Ÿง  AI-Powered Coach - Personalized learning assistant
  • ๐Ÿ† Certifications - Industry-recognized certificates
  • ๐Ÿ“„ Resume Builder - Professional CV creation tools
  • ๐Ÿงช Interactive Quizzes - Skill assessment and testing

๐Ÿ’ผ Career Opportunities(Some Of These Services are in the Community page)

  • ๐Ÿ“ฑ USSD Job Board - Access jobs via simple phone codes (no internet required!)
  • ๐Ÿค 1-on-1 Mentorship - Connect with industry experts
  • ๐Ÿ’ฐ Freelance Opportunities - Discover remote work possibilities
  • ๐ŸŒ Global Platforms Integration - Upwork, Fiverr, and more

๐Ÿ—ฃ๏ธ Community & Support

  • ๐Ÿ’ฌ Discussion Forums - Topic-based community discussions
  • โ“ Q&A Section - Get answers from experts and peers
  • ๐Ÿ“– Success Stories - Inspiring journeys from fellow entrepreneurs
  • ๐ŸŒŸ Peer Support - Collaborative learning environment

๐Ÿ’ณ Payment & Subscriptions

  • ๐Ÿ“ฑ M-Pesa Integration - Seamless mobile money payments
  • ๐Ÿ’Ž Subscription Plans - Basic, Premium, and Pro tiers
  • ๐Ÿ›’ Course Purchases - Buy individual courses
  • ๐Ÿ’ต Mentorship Booking - Pay for expert sessions

๐Ÿ”ง Technology Stack

Frontend Technologies ๐ŸŽจ

  • โš›๏ธ React 18.3.1 - Modern UI framework
  • ๐Ÿ“˜ TypeScript - Type-safe development
  • ๐ŸŽจ Tailwind CSS - Utility-first styling
  • ๐Ÿงฉ Shadcn/UI - Beautiful component library
  • ๐Ÿ“Š Recharts - Data visualization
  • ๐Ÿ” React Query - Server state management
  • ๐Ÿงญ React Router - Client-side routing

Backend & Database ๐Ÿ—„๏ธ

  • ๐Ÿš€ Supabase - Backend-as-a-Service
  • ๐Ÿ˜ PostgreSQL - Robust database
  • ๐Ÿ” Row Level Security - Data protection
  • ๐Ÿ”„ Real-time subscriptions - Live updates
  • โšก Edge Functions - Serverless computing

Payment Integration ๐Ÿ’ฐ

  • ๐Ÿ“ฑ Safaricom M-Pesa API - Mobile money integration
  • ๐Ÿ”’ STK Push - Secure payment initiation
  • ๐Ÿ’ณ Payment callbacks - Transaction verification
  • ๐Ÿ“ˆ Payment analytics - Transaction tracking

๐Ÿ“ฑ Safaricom M-Pesa Integration

๐Ÿ› ๏ธ M-Pesa Tools Used

1. ๐Ÿ“ก STK Push (Lipa na M-Pesa Online)

// Initiate payment from customer's phone
const stkPushResponse = await mpesaAPI.stkPush({
  phoneNumber: "254712345678",
  amount: 1000,
  callbackURL: "https://yourapp.com/callback"
});

2. ๐Ÿ”„ Payment Callbacks

  • โœ… Success notifications - Real-time payment confirmation
  • โŒ Failure handling - Graceful error management
  • ๐Ÿ“Š Transaction logging - Complete audit trail

3. ๐Ÿ” Security Features

  • ๐Ÿ›ก๏ธ OAuth 2.0 - Secure API authentication
  • ๐Ÿ”‘ Encrypted credentials - Safe key management
  • โœ… Request validation - Data integrity checks

๐Ÿ’ผ Payment Workflows

Course Purchase Flow ๐Ÿ“š๐Ÿ’ณ

  1. ๐Ÿ›’ User selects course
  2. ๐Ÿ’ฐ Enters M-Pesa number
  3. ๐Ÿ“ฑ Receives STK push prompt
  4. ๐Ÿ”ข Enters M-Pesa PIN
  5. โœ… Payment confirmed
  6. ๐ŸŽ“ Course access granted

Mentorship Booking Flow ๐Ÿค๐Ÿ’ต

  1. ๐Ÿ‘จโ€๐Ÿซ User selects mentor
  2. ๐Ÿ“… Chooses available slot
  3. ๐Ÿ“ฑ M-Pesa payment initiated
  4. โœ… Payment confirmation
  5. ๐Ÿ“ง Booking confirmation sent
  6. ๐Ÿ”— Meeting link provided

Subscription Flow ๐Ÿ’Ž๐Ÿ“ฑ

  1. ๐Ÿ“Š User selects plan
  2. ๐Ÿ’ณ Monthly/annual billing
  3. ๐Ÿ”„ Auto-renewal setup
  4. ๐Ÿ“ฑ M-Pesa recurring payments
  5. ๐ŸŽฏ Feature access updated

๐Ÿš€ Installation & Setup

Prerequisites ๐Ÿ“‹

  • ๐Ÿ“ฆ Node.js (v18 or higher)
  • ๐Ÿงถ npm or yarn
  • ๐Ÿ—„๏ธ Supabase account
  • ๐Ÿ“ฑ Safaricom Developer Account

1. Clone Repository ๐Ÿ“ฅ

git clone https://github.com/yourusername/digital-entrepreneurship-hub.git
cd digital-entrepreneurship-hub

2. Install Dependencies ๐Ÿ“ฆ

npm install
# or
yarn install

3. Environment Setup โš™๏ธ

# Supabase Configuration
VITE_SUPABASE_URL=your_supabase_url
VITE_SUPABASE_ANON_KEY=your_supabase_anon_key

# M-Pesa Credentials (Supabase Secrets)
MPESA_CONSUMER_KEY=your_consumer_key
MPESA_CONSUMER_SECRET=your_consumer_secret
MPESA_BUSINESS_SHORT_CODE=your_business_shortcode
MPESA_PASSKEY=your_passkey
MPESA_CALLBACK_URL=your_callback_url

4. Database Setup ๐Ÿ—„๏ธ

# Run Supabase migrations
npx supabase db reset
npx supabase start

5. Start Development ๐Ÿƒโ€โ™‚๏ธ

npm run dev
# or
yarn dev

๐Ÿ“Š Database Schema

Core Tables ๐Ÿ—‚๏ธ

  • ๐Ÿ‘ค profiles - User information
  • ๐Ÿ“š courses - Course catalog
  • ๐Ÿ›’ course_purchases - Purchase records
  • ๐Ÿ’ณ payments - Transaction history
  • ๐Ÿ’Ž subscriptions - User plans
  • ๐Ÿค mentorship_bookings - Mentor sessions

Community Tables ๐ŸŒŸ

  • ๐Ÿ’ฌ forum_topics - Discussion threads
  • ๐Ÿ“ forum_posts - Topic responses
  • โ“ qa_questions - Q&A questions
  • ๐Ÿ’ก qa_answers - Question responses
  • ๐Ÿ† success_stories - User achievements
  • ๐Ÿ“ฑ job_listings - USSD job opportunities

๐ŸŽฏ Core Functionalities

๐ŸŽ“ Learning Management System

  • ๐Ÿ“– Course content delivery
  • ๐ŸŽฅ Video streaming
  • ๐Ÿ“Š Progress tracking
  • ๐Ÿ… Achievement system
  • ๐Ÿ“œ Certificate generation

๐Ÿ“ฑ USSD Job Integration

  • ๐Ÿ“ž Phone-based job access
  • ๐ŸŒ Rural-friendly opportunities
  • ๐Ÿ“‹ Application tracking
  • ๐Ÿ’ผ Category filtering
  • ๐Ÿ“ Location-based search

๐Ÿค Mentorship Platform

  • ๐Ÿ‘จโ€๐Ÿซ Expert mentor profiles
  • ๐Ÿ“… Calendar integration
  • ๐Ÿ’ฐ Session payments
  • ๐ŸŽฅ Video conferencing
  • ๐Ÿ“Š Session analytics

๐Ÿ’ฐ Payment Processing

  • ๐Ÿ“ฑ M-Pesa STK Push
  • ๐Ÿ”„ Real-time validation
  • ๐Ÿ“ˆ Payment analytics
  • ๐Ÿ’ณ Subscription management
  • ๐Ÿงพ Invoice generation

๐Ÿ”ฎ Future Features

๐Ÿš€ Coming Soon

  • ๐Ÿค– Advanced AI Tutor - Personalized learning paths
  • ๐ŸŒ Multi-language Support - Swahili, French, Portuguese
  • ๐Ÿ“Š Analytics Dashboard - Detailed learning insights
  • ๐ŸŽฎ Gamification - Points, badges, leaderboards
  • ๐Ÿ“ฒ Mobile App - Native iOS/Android applications

๐ŸŽฏ Roadmap Q1 2025

  • ๐Ÿช Marketplace - Sell your own courses
  • ๐Ÿค Partnership Program - Business collaborations
  • ๐ŸŽ“ University Integration - Academic partnerships
  • ๐Ÿ’ผ Job Placement - Direct employment opportunities
  • ๐ŸŒ Pan-African Expansion - Multi-country support

๐Ÿ”ฎ Long-term Vision

  • ๐Ÿข Corporate Training - Enterprise solutions
  • ๐ŸŒŸ Alumni Network - Graduate community
  • ๐Ÿ’ฐ Microfinance Integration - Small business loans
  • ๐Ÿš€ Startup Incubator - Business acceleration
  • ๐ŸŒ Global Certification - International recognition

๐Ÿ› ๏ธ Development Workflow

๐Ÿ”„ Git Workflow

# Feature development
git checkout -b feature/new-feature
git commit -m "โœจ Add new feature"
git push origin feature/new-feature

# Create Pull Request
# Code Review & Testing
# Merge to main

๐Ÿงช Testing Strategy

  • ๐Ÿ” Unit Tests - Component testing
  • ๐Ÿ”— Integration Tests - API testing
  • ๐ŸŽญ E2E Tests - User journey testing
  • ๐Ÿ“ฑ Payment Testing - M-Pesa sandbox

๐Ÿš€ Deployment Pipeline

  1. ๐Ÿ” Code Review - Peer validation
  2. ๐Ÿงช Automated Testing - CI/CD pipeline
  3. ๐Ÿ“ฑ Payment Testing - M-Pesa validation
  4. ๐ŸŒ Staging Deployment - Pre-production
  5. โœ… Production Release - Live deployment

๐Ÿ“š API Documentation

๐Ÿ” Authentication Endpoints

// User registration
POST /auth/register
{
  email: string,
  password: string,
  full_name: string
}

// User login
POST /auth/login
{
  email: string,
  password: string
}

๐Ÿ’ณ Payment Endpoints

// Initiate M-Pesa payment
POST /payments/mpesa/initiate
{
  phoneNumber: string,
  amount: number,
  paymentType: 'course_purchase' | 'mentorship_booking' | 'subscription'
}

// Payment callback
POST /payments/mpesa/callback
{
  // Safaricom callback payload
}

๐Ÿค Contributing

๐ŸŒŸ How to Contribute

  1. ๐Ÿด Fork the repository
  2. ๐ŸŒฟ Create a feature branch
  3. โœ๏ธ Make your changes
  4. ๐Ÿงช Add tests
  5. ๐Ÿ“ Update documentation
  6. ๐Ÿ”„ Submit a pull request

๐Ÿ“‹ Contribution Guidelines

  • โœจ Follow code style guidelines
  • ๐Ÿ“ Write clear commit messages
  • ๐Ÿงช Include tests for new features
  • ๐Ÿ“š Update documentation
  • ๐ŸŽฏ Focus on user experience

๐Ÿ“ž Support & Community

๐Ÿ†˜ Getting Help


๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


๐Ÿ™ Acknowledgments

๐ŸŒŸ Special Thanks

  • ๐Ÿ“ฑ Safaricom - M-Pesa API integration
  • ๐Ÿš€ Supabase - Backend infrastructure
  • ๐ŸŽจ Shadcn/UI - Component library
  • ๐ŸŒ African Developer Community - Inspiration and support

๐Ÿ’ก Inspiration

Built with โค๏ธ for African youth, by African developer Marklewis, to bridge the digital divide and create opportunities in the digital economy.


### ๐Ÿš€ Ready to Transform Digital Africa? **[๐ŸŒŸ Star this repo](https://github.com/yourusername/repo)** โ€ข **[๐Ÿด Fork it](https://github.com/yourusername/repo/fork)** โ€ข **[๐Ÿ“– Read the docs](https://docs.digitalhub.africa)** --- **Made with ๐Ÿ’š in Kenya ๐Ÿ‡ฐ๐Ÿ‡ช | Empowering Africa ๐ŸŒ | Building the Future ๐Ÿš€**
Share this project:

Updates