Basic Configuration

1. Environment Variables Configuration

FastShipAny uses the .env.local file to manage environment variables. Create a .env.local file in the project root directory and configure the following environment variables:

# Supabase Configuration
NEXT_PUBLIC_SUPABASE_URL=
NEXT_PUBLIC_SUPABASE_ANON_KEY=

# NextAuth Configuration
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=

# Google OAuth
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=

# Stripe Configuration
STRIPE_SECRET_KEY=
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=
STRIPE_WEBHOOK_SECRET=

# Pricing
NEXT_PUBLIC_STRIPE_BASIC_PRICE_ID=
NEXT_PUBLIC_STRIPE_PRO_PRICE_ID=
NEXT_PUBLIC_STRIPE_ENTERPRISE_PRICE_ID=

# Google Sheets API Configuration
GOOGLE_CLIENT_EMAIL=
GOOGLE_PRIVATE_KEY=
GOOGLE_SHEET_ID=
GOOGLE_SHEET_TAB_NAME=

2. Database Configuration

FastShipAny uses Supabase as the database service. You need to:

  • Create a new project in Supabase console
  • Get the project URL and anon key
  • Configure these values in the .env.local file

3. Authentication Configuration

FastShipAny uses NextAuth.js and Google OAuth for user authentication:

  • Create an OAuth 2.0 client in Google Cloud Console
  • Configure authorization redirect URIs
  • Add Client ID and Client Secret to environment variables

4. Payment Configuration

To enable Stripe payment functionality:

  • Register a Stripe account and get API keys
  • Create products and pricing plans, then configure price_id in environment variables
  • Configure Webhook endpoints
  • Add all Stripe-related keys to environment variables

Next Chapter

Learn how to make custom extensions

Custom Extension