Skip to content
/ B8 Public

B8 is a comprehensive web platform that integrates multiple business units including B8 League, B8 World, B8 Marketing, B8 Clothing, B8 Car Club, and more. Built with React, TypeScript, and Firebase, it offers a modern, responsive user experience with secure authentication, real-time data, and integrated payment processing.

License

Notifications You must be signed in to change notification settings

Hum2a/B8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

B8 Network Platform

License Version TypeScript React Vite Stripe PRs Welcome

🌟 B8 Network is an integrated business solutions and sports league platform that connects businesses and individuals across marketing, sports leagues, fashion, automotive, and entertainment sectors.

πŸ“– Table of Contents

🎯 Overview

B8 Network is revolutionizing the way businesses and individuals connect across multiple sectors. Our platform integrates:

Business Unit Description Status
πŸ† B8 League Professional sports management Live
πŸ“ˆ Innov8 Digital marketing solutions Live
πŸš— B8 Car Club Automotive community Beta
πŸ‘• B8 Clothing Fashion & merchandise Coming Soon
🎭 BGr8 Entertainment & events Live

πŸš€ Features

Click to expand feature list

Core Features

  • ✨ Professional networking and business solutions
  • πŸ† Sports league management
  • πŸ“Š Marketing services (Innov8)
  • πŸš— Automotive community (B8 Car Club)
  • πŸ‘• Fashion and merchandise (B8 Clothing)
  • πŸŽ‰ Entertainment and events (BGr8)

Technical Features

  • πŸ” Secure authentication
  • πŸ’³ Secure payment processing with Stripe
  • πŸ“± PWA support
  • 🎨 Responsive design
  • πŸ“Š Analytics integration
  • πŸ”„ Real-time updates
  • πŸ’° Donation system with Stripe Checkout

πŸ› οΈ Tech Stack

Our platform is built with modern technologies:

graph TD
    A[Frontend] --> B[React + TypeScript]
    A --> C[Vite]
    D[Backend Services] --> E[Firebase]
    E --> F[Authentication]
    E --> G[Firestore]
    E --> H[Storage]
    I[Analytics] --> J[Google Analytics]
    K[Payments] --> L[Stripe]
    L --> M[Stripe Checkout]
    L --> N[Stripe Webhooks]
Loading

πŸ“‹ Prerequisites

Before you begin, ensure you have:

  • Node.js (v16.x or higher)
  • npm (v8.x or higher)
  • Firebase account and project
  • Stripe account with API keys
  • Stripe CLI (for webhook testing)

πŸ”§ Installation

Step-by-step installation guide
  1. Clone the repository:

    git clone https://github.com/yourusername/b8-network.git
    cd b8-network
  2. Install dependencies:

    npm install
  3. Set up environment variables: Create a .env file in the root directory:

    VITE_FIREBASE_API_KEY=your_api_key
    VITE_FIREBASE_AUTH_DOMAIN=your_auth_domain
    VITE_FIREBASE_PROJECT_ID=your_project_id
    VITE_FIREBASE_STORAGE_BUCKET=your_storage_bucket
    VITE_FIREBASE_MESSAGING_SENDER_ID=your_messaging_sender_id
    VITE_FIREBASE_APP_ID=your_app_id
    VITE_FIREBASE_MEASUREMENT_ID=your_measurement_id
    VITE_STRIPE_PUBLISHABLE_KEY=your_stripe_publishable_key
    VITE_STRIPE_SERVER_URL=your_stripe_server_url
  4. Set up Stripe server environment: Create a .env file in the stripe directory:

    STRIPE_SECRET_KEY=your_stripe_secret_key
    STRIPE_WEBHOOK_SECRET=your_stripe_webhook_secret
    PORT=3001
    CLIENT_URL=http://localhost:5173
  5. Start the development servers:

    # Start the main application
    npm run dev
    
    # Start the Stripe server (in a separate terminal)
    cd stripe && node server.js

πŸš€ Deployment

Deployment instructions

Production Build

npm run build

Preview Production Build

npm run preview

πŸ“ Environment Variables

Required environment variables:

View all environment variables
Variable Description Required
VITE_FIREBASE_API_KEY Firebase API Key βœ…
VITE_FIREBASE_AUTH_DOMAIN Firebase Auth Domain βœ…
VITE_FIREBASE_PROJECT_ID Firebase Project ID βœ…
VITE_FIREBASE_STORAGE_BUCKET Firebase Storage Bucket βœ…
VITE_FIREBASE_MESSAGING_SENDER_ID Firebase Messaging Sender ID βœ…
VITE_FIREBASE_APP_ID Firebase App ID βœ…
VITE_FIREBASE_MEASUREMENT_ID Firebase Measurement ID βœ…
VITE_STRIPE_PUBLISHABLE_KEY Stripe Publishable Key βœ…
VITE_STRIPE_SERVER_URL Stripe Server URL βœ…
STRIPE_SECRET_KEY Stripe Secret Key (server) βœ…
STRIPE_WEBHOOK_SECRET Stripe Webhook Secret (server) βœ…

πŸ§ͺ Testing

# Run unit tests
npm run test

# Run end-to-end tests
npm run test:e2e

# Run tests in CI environment
npm run test:ci

πŸ“¦ Project Structure

View project structure
b8-network/
β”œβ”€β”€ πŸ“ src/                    # Source files
β”‚   β”œβ”€β”€ πŸ“± components/        # React components
β”‚   β”œβ”€β”€ πŸ“„ pages/            # Page components
β”‚   β”œβ”€β”€ 🎣 hooks/            # Custom React hooks
β”‚   β”œβ”€β”€ 🌍 context/          # React context providers
β”‚   β”œβ”€β”€ πŸ”Œ services/         # API and service integrations
β”‚   β”œβ”€β”€ πŸ› οΈ utils/            # Utility functions
β”‚   β”œβ”€β”€ πŸ“ types/            # TypeScript type definitions
β”‚   └── 🎨 assets/           # Static assets
β”œβ”€β”€ πŸ“‚ public/               # Public static files
β”œβ”€β”€ πŸ§ͺ tests/                # Test files
β”œβ”€β”€ πŸ“š docs/                 # Documentation
└── πŸ’³ stripe/               # Stripe server implementation
    β”œβ”€β”€ server.js           # Express server setup
    β”œβ”€β”€ stripe.js           # Stripe integration logic
    └── config.js           # Server configuration

🀝 Contributing

We welcome contributions! Please read our Contributing Guide for details.

Quick contribution steps
  1. Fork the Project
  2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
  3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
  4. Push to the Branch (`git push origin feature/AmazingFeature`)
  5. Open a Pull Request

πŸ“„ License

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

πŸ”’ Security

For security concerns, please email security@b8network.co.uk

πŸ“§ Contact

Ways to reach us

πŸ™ Acknowledgments

Special thanks to
  • πŸ‘₯ All our contributors and community members
  • 🌟 Open source projects we depend on
  • πŸ§ͺ Our beta testers and early adopters

Made with ❀️ by the B8 Network Team

Report Bug Β· Request Feature

About

B8 is a comprehensive web platform that integrates multiple business units including B8 League, B8 World, B8 Marketing, B8 Clothing, B8 Car Club, and more. Built with React, TypeScript, and Firebase, it offers a modern, responsive user experience with secure authentication, real-time data, and integrated payment processing.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published