π 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
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 |
Click to expand feature list
- β¨ 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)
- π Secure authentication
- π³ Secure payment processing with Stripe
- π± PWA support
- π¨ Responsive design
- π Analytics integration
- π Real-time updates
- π° Donation system with Stripe Checkout
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]
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)
Step-by-step installation guide
-
Clone the repository:
git clone https://github.com/yourusername/b8-network.git cd b8-network
-
Install dependencies:
npm install
-
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
-
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
-
Start the development servers:
# Start the main application npm run dev # Start the Stripe server (in a separate terminal) cd stripe && node server.js
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) | β |
# Run unit tests
npm run test
# Run end-to-end tests
npm run test:e2e
# Run tests in CI environment
npm run test:ci
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
We welcome contributions! Please read our Contributing Guide for details.
Quick contribution steps
- Fork the Project
- Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
- Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
- Push to the Branch (`git push origin feature/AmazingFeature`)
- Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
For security concerns, please email security@b8network.co.uk
Ways to reach us
- π Website: b8network.co.uk
- π§ Email: contact@b8network.co.uk
- π¦ Twitter: @B8Network
- πΌ LinkedIn: B8 Network
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