Skip to content

Quick Start

Get IndieStack running from zero in minutes.

Prerequisites

  • Node.js 18.17+ (nvm recommended)
  • npm 9+ or pnpm 8+
  • Git
  • Supabase CLI (optional, for local database management)
  • Docker Desktop (optional, for local PostgreSQL)

Clone & Install

bash
git clone <repo-url> indiestack
cd indiestack
pnpm install

Configure Environment

bash
cp .env.example .env.local

Edit .env.local based on your development mode:

No real Supabase backend needed. All data is generated by @faker-js/faker:

bash
# Mock Mode: set to true, no Supabase config needed
NEXT_PUBLIC_MOCK_ENABLED=true

Option 2: Real Supabase Backend

Create a Supabase project and get the config:

bash
NEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIs...
NEXT_PUBLIC_MOCK_ENABLED=false

Start Dev Server

bash
# Start with Mock mode (recommended for early development)
pnpm dev:mock

# Or start with Supabase mode
pnpm dev:supabase

# Standard mode
pnpm dev

Open http://localhost:3000.

Quick Tour

Once IndieStack is running:

  1. Browse Home: Marketing landing page with feature showcase
  2. View Pricing: Three pricing tiers (Free / Pro / Enterprise)
  3. Login: In Mock mode, click "Sign In" to access dashboard without real credentials
  4. Explore Dashboard: Project management, team collaboration, analytics, notifications
  5. Switch Theme: Toggle light/dark/system in the top-right corner
  6. Switch Language: Toggle Chinese/English in the top-right corner

Build for Production

bash
pnpm build
pnpm start

Database Setup (Supabase Mode)

If using Supabase mode, initialize the database:

bash
npx supabase login
npx supabase link --project-ref your-project-ref
pnpm db:migrate
pnpm db:types
npx supabase db seed

Verify Installation

Visit these pages to confirm everything works:

PagePathDescription
Home/Marketing landing page
Features/featuresFeature showcase
Pricing/pricingPricing plans
Login/auth/loginEmail + GitHub + Google
Register/auth/registerNew user sign up
Dashboard/dashboardRequires login
Profile/dashboard/profileUser info
Team/dashboard/teamCreate and invite team
Projects/dashboard/projectsProject management
Analytics/dashboard/analyticsUsage statistics
Settings/dashboard/settingsAccount and appearance
Billing/dashboard/billingSubscription management
API Keys/dashboard/api-keysAPI key management
Integrations/dashboard/integrationsThird-party services
Admin/dashboard/adminUser management (admin only)

Next Steps

基于 MIT 协议开源