Deployment Guide - chintan992/letsstream2 GitHub Wiki
Deployment Guide
This guide covers different deployment options for Let's Stream V2.0.
Table of Contents
Prerequisites
Before deploying, ensure you have:
- A GitHub account
- Firebase account and project set up
- All environment variables ready
- Project built and tested locally
Environment Setup
Create a .env file with the following variables:
VITE_FIREBASE_API_KEY=
VITE_FIREBASE_AUTH_DOMAIN=
VITE_FIREBASE_PROJECT_ID=
VITE_FIREBASE_STORAGE_BUCKET=
VITE_FIREBASE_MESSAGING_SENDER_ID=
VITE_FIREBASE_APP_ID=
VITE_FIREBASE_MEASUREMENT_ID=
Deployment Options
Netlify Deployment
-
Quick Deploy
- Click the "Deploy to Netlify" button in the README
- Connect your GitHub repository
- Configure environment variables in Netlify's dashboard
-
Manual Deploy
- Log in to Netlify
- Click "New site from Git"
- Select your repository
- Configure build settings:
Build command: npm run build Publish directory: dist Node version: 18.x - Add environment variables in site settings
-
Deploy Configuration The
netlify.tomlfile in the repository root configures:- Build settings
- Redirects for SPA routing
- Node.js version
Cloudflare Pages Deployment
-
Quick Deploy
- Click the "Deploy to Cloudflare Pages" button in the README
- Connect your GitHub repository
- Configure build settings:
Build command: npm run build Build output directory: dist Node.js version: 18.x
-
Manual Deploy
- Log in to Cloudflare Dashboard
- Go to Pages
- Create new project
- Connect your repository
- Configure build settings
- Add environment variables
-
Environment Variables Add all required Firebase environment variables in the Cloudflare Pages settings.
Post-deployment Steps
-
Verify Configuration
- Test authentication flows
- Verify PWA functionality
- Check media playback
- Test responsive design
-
Performance Monitoring
- Set up Firebase Analytics
- Configure error tracking
- Monitor CDN performance
-
Domain Configuration (Optional)
- Add custom domain
- Configure SSL/TLS
- Update Firebase authentication settings
-
Testing Checklist
- Authentication works
- Media playback functions
- PWA installs correctly
- Offline functionality works
- Environment variables are set
- Routes work correctly
- API endpoints are accessible