Skip to main content
Connect World is a streaming service platform with multi-tier subscriptions and integrated payment processing. This guide will help you get started quickly.
1

Clone and Install Dependencies

Clone the repository and install the required packages.
git clone https://github.com/otniel0820/connect-world-v1.git
cd connect-world-v1
npm install
2

Configure Environment Variables

Create a .env.local file in the root directory with the following variables:
.env.local
# MongoDB Connection
MONGODB_URI=mongodb://localhost:27017/connect-world

# Stripe Configuration
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=pk_test_your_key
STRIPE_SECRET_KEY=sk_test_your_key

# PayPal Configuration
NEXT_PUBLIC_PAYPAL_CLIENT_ID=your_paypal_client_id
PAYPAL_CLIENT_SECRET=your_paypal_client_secret

# TMDB API (Optional - for content catalog)
NEXT_PUBLIC_TMDB_API_KEY=your_tmdb_api_key
You’ll need to create accounts with Stripe and PayPal to get your API credentials. See the Installation guide for detailed setup instructions.
3

Start MongoDB

Make sure MongoDB is running on your system.
# If using local MongoDB
mongod

# Or using Docker
docker run -d -p 27017:27017 --name mongodb mongo:latest
4

Run the Development Server

Start the Next.js development server.
npm run dev
Open http://localhost:3000 in your browser to see the application.
5

Test a Subscription Flow

Navigate to the Plans section and select a subscription tier:
  • Basic Plan: 1 device, from $10/month
  • Standard Plan: 2 devices, from $15/month (Popular)
  • Premium Plan: 3 devices, 4K support, from $15/month
Use Stripe’s test card number 4242 4242 4242 4242 to complete a test payment.

Next Steps

Explore Features

Learn about subscription plans, payment processing, and content catalog

Architecture

Understand the system design and domain-driven architecture

API Reference

Explore the complete API documentation

Security

Review security features including rate limiting and validation

Need Help?

Make sure all dependencies are installed and MongoDB is running. Check that your Node.js version is 18 or higher.
Verify that your Stripe or PayPal API keys are correctly set in .env.local. For testing, use Stripe test mode keys (starting with pk_test_ and sk_test_).
The TMDB API key is optional. If not configured, the catalog section will be empty. Sign up for a free TMDB API key at https://www.themoviedb.org/settings/api.

Build docs developers (and LLMs) love