Installation Guide
Prerequisites
Before you begin, ensure you have the following installed:
- Node.js 18.x or later
- npm 9.x or later
- Git for version control
- Supabase CLI (optional, for local development)
System Requirements
| Component | Minimum | Recommended |
|---|---|---|
| RAM | 4 GB | 8 GB+ |
| Disk Space | 2 GB | 5 GB+ |
| CPU | 2 cores | 4 cores+ |
| OS | Linux, macOS, Windows | Linux/macOS |
Step 1: Clone the Repository
Step 2: Install Dependencies
This will install all required dependencies including: - Next.js 15.0.3 - React 19 RC - Supabase client libraries - Razorpay SDK - UI component libraries
Step 3: Configure Environment Variables
Copy the example environment file:
Edit .env.local and configure the following:
Supabase Configuration (India Region)
NEXT_PUBLIC_SUPABASE_URL=your_india_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_india_anon_key
SUPABASE_SERVICE_ROLE_KEY=your_india_service_role_key
SUPABASE_PROJECT_ID=your_india_project_id
Supabase Configuration (US Region)
NEXT_PUBLIC_SUPABASE_US_URL=your_us_supabase_url
NEXT_PUBLIC_SUPABASE_US_ANON_KEY=your_us_anon_key
SUPABASE_US_SERVICE_ROLE_KEY=your_us_service_role_key
SUPABASE_US_PROJECT_ID=your_us_project_id
Payment Gateway
Analytics
NEXT_PUBLIC_GA_MEASUREMENT_ID=your_ga_id
NEXT_PUBLIC_GOOGLE_ADS_ID=your_ads_id
NEXT_PUBLIC_FACEBOOK_PIXEL_ID=your_pixel_id
Cloudflare
Step 4: Set Up Database
Apply Migrations to India Database
Apply Migrations to US Database
This will create all 11 tables, RLS policies, and seed data.
Step 5: Run Development Server
Your application will be available at http://localhost:3000
Step 6: Build for Production
This creates an optimized production build in .next/ directory.
Step 7: Deploy to Staging
Step 8: Deploy to Production
Troubleshooting
Port Already in Use
Database Connection Issues
- Verify Supabase project IDs in
.env.local - Check API keys are not expired
- Ensure RLS policies are enabled