๐ Digital Entrepreneurship Hub - Empowering African Youth ๐
 ### ๐ฏ Bridging the Digital Divide Through Innovation and Education [](https://www.safaricom.co.ke/) [](https://www.safaricom.co.ke/personal/m-pesa) [](https://reactjs.org/) [](https://www.typescriptlang.org/) [](https://supabase.io/) [](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 ๐๐ณ
- ๐ User selects course
- ๐ฐ Enters M-Pesa number
- ๐ฑ Receives STK push prompt
- ๐ข Enters M-Pesa PIN
- โ Payment confirmed
- ๐ Course access granted
Mentorship Booking Flow ๐ค๐ต
- ๐จโ๐ซ User selects mentor
- ๐ Chooses available slot
- ๐ฑ M-Pesa payment initiated
- โ Payment confirmation
- ๐ง Booking confirmation sent
- ๐ Meeting link provided
Subscription Flow ๐๐ฑ
- ๐ User selects plan
- ๐ณ Monthly/annual billing
- ๐ Auto-renewal setup
- ๐ฑ M-Pesa recurring payments
- ๐ฏ 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
- ๐ Code Review - Peer validation
- ๐งช Automated Testing - CI/CD pipeline
- ๐ฑ Payment Testing - M-Pesa validation
- ๐ Staging Deployment - Pre-production
- โ 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
- ๐ด Fork the repository
- ๐ฟ Create a feature branch
- โ๏ธ Make your changes
- ๐งช Add tests
- ๐ Update documentation
- ๐ 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
- ๐ง Email: ngondimarklewis@gmail.com
- ๐ฌ Discord: Join our community
- ๐ฑ WhatsApp: +254790767347
- ๐ Bug Reports: GitHub Issues
๐ 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 ๐**
Log in or sign up for Devpost to join the conversation.