Files
blackcanyontickets/reactrebuild0825/API_DEPLOYMENT_INSTRUCTIONS.md
dzinesco aa81eb5adb feat: add advanced analytics and territory management system
- Add comprehensive analytics components with export functionality
- Implement territory management with manager performance tracking
- Add seatmap components for venue layout management
- Create customer management features with modal interface
- Add advanced hooks for dashboard flags and territory data
- Implement seat selection and venue management utilities
- Add type definitions for ticketing and seatmap systems

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-26 09:25:10 -06:00

2.1 KiB

API Deployment Instructions

Current Status

Issue: Google Cloud APIs Still Enabling

After upgrading to Blaze plan, these APIs need to be enabled:

  • cloudfunctions.googleapis.com
  • cloudbuild.googleapis.com
  • artifactregistry.googleapis.com

Solution Options

  1. Visit Google Cloud Console
  2. Search for and enable these APIs:
    • Cloud Functions API
    • Cloud Build API
    • Artifact Registry API
  3. Wait 2-3 minutes for activation
  4. Run: firebase deploy --only functions

Option 2: Firebase Console Method

  1. Go to Firebase Console
  2. Click "Get Started" on Functions tab
  3. This will automatically enable required APIs
  4. Run: firebase deploy --only functions

Option 3: Wait and Retry

APIs may still be enabling in background:

# Try every 5 minutes until it works
firebase deploy --only functions

After Functions Deploy Successfully

Your API endpoints will be available at:

  • GET /api/health - Health check
  • POST /api/tickets/verify - Ticket verification
  • POST /api/checkout/create - Stripe checkout
  • POST /api/stripe/connect/start - Stripe Connect
  • GET /api/stripe/connect/status - Connection status

Test Commands

# Health check
curl https://cg-bct-2b68d--staging-u50c45fo.web.app/api/health

# Ticket verification (mock)
curl -X POST https://cg-bct-2b68d--staging-u50c45fo.web.app/api/tickets/verify \
  -H "Content-Type: application/json" \
  -d '{"qr":"test-qr-code"}'

Deploy to Production

Once functions work on staging:

firebase deploy --only hosting,functions  # Deploy to main site

Your production URLs will be:

The React app is already 100% functional - the API will complete the full experience!