# Getting started

import { Callout } from "fumadocs-ui/components/callout";
import { Step, Steps } from "fumadocs-ui/components/steps";
import { Badge } from "@pycolors/ui";
import {
  CreditCard,
  Database,
  LockKeyhole,
  Package,
  Rocket,
  Scale,
} from "lucide-react";

import { PreferAvoid } from "@/components/docs/prefer-avoid";
import { DocsDecisionGrid } from "@/components/docs/docs-decision-grid";
import { DocsFeatureGrid } from "@/components/docs/docs-feature-grid";
import { DocsLinks } from "@/components/docs/docs-links";

<div className="flex flex-wrap items-center gap-2">
  <Badge variant="outline">
    Starter Pro
  </Badge>

  <Badge>
    Setup
  </Badge>
</div>

## Start with your purchased package

These commands describe **Starter Pro Web**. For [Fullstack](/docs/starter-pro/fullstack), run the Web instructions from the archive's `web/` directory, then connect the included native source to that backend. For a [Mobile purchase](/docs/starter-pro/mobile), follow its `backend/` and `mobile/` instructions instead; the complete Web interface is not part of that offer.

Need to choose first? [Compare Web, Mobile and Fullstack](/pricing#source-licences). After your first local run, keep the received manifest and compare [documented product versions](/product-releases) before applying the [update workflow](/docs/starter-pro/customization-and-upgrades).

## Get from purchase to product work faster

Start with the [Starter Pro product tour](/starters/pro#product-tour) to see sign-in,
workspaces, appearance settings and a project workflow in the real interface.
The English tour includes instrumental music, example data and a text transcript.

Starter Pro is built to shorten the path between:

* buying the product
* running it locally
* validating the foundations
* customizing the product
* shipping your own SaaS faster

The goal is not to study the codebase for days.

The goal is to get the production baseline running, confirm the important systems, then start building your product on top of it.

<Callout title="After purchase">
  Download and unzip Starter Pro from your claim email before running the setup commands below. Need the email again? Use [purchase recovery](/orders/recover) to resend your access link.

  The confirmation page reports payment as confirmed only when your checkout is
  complete and paid. A pending, incomplete, expired, or unavailable confirmation
  does not provide download access. If the page cannot confirm your payment,
  check again or contact support before paying again.

  Payment confirmation and email delivery are separate steps. Use the access
  link in your claim email once delivery has been processed.
</Callout>

<Callout title="Core setup principle">
  Validate the foundation first. Customize second. Build your product third.
</Callout>

## First 30 minutes after purchase

Use this timeline to choose your next action, not to race through setup.
The timeboxes are suggested planning checkpoints, not measured setup times or
an email-delivery promise. Downloads, PostgreSQL, and provider configuration
can take longer. A local first run is not a production launch.

Before starting, have the checkout email available and review the README and
Node.js/pnpm requirements in your downloaded release. Use a local development
database and keep environment files private. Buying Starter Pro does not
provision your database, email sender, OAuth apps, or Stripe account for you.

1. **0–5 minutes: check payment and claim access.** Check your checkout
   confirmation and the inbox/spam folder for the email used at checkout.
   Payment confirmation is separate from access-email delivery. Continue when
   you can open the claim email; if access is missing, follow
   [purchase recovery](/docs/starter-pro/purchase-recovery).
2. **5–10 minutes: download and inspect the package.** Open the access link,
   check that the product is Starter Pro, download the ZIP, and unzip it.
   Read the release README before running commands. Your checkpoint is an
   extracted project and a clear setup entry point, not a configured SaaS.
   See [delivery](/docs/starter-pro/delivery) for the access flow.
3. **10–20 minutes: prepare the local foundation.** Follow the
   [setup flow](#setup-flow) below for dependencies, environment variables,
   PostgreSQL, and database setup, in that order. Use only a local development
   database; do not run migrations or seeds against production. Check the
   [environment guide](/docs/starter-pro/environment-variables) for the
   integrations you intend to exercise. Continue only after setup succeeds.
4. **20–25 minutes: check the first local run.** Start the app using the
   release instructions, then verify a configured sign-in flow and a protected
   page. A rendered login or billing page alone does not validate authentication
   or payments. Use the [auth guide](/docs/starter-pro/auth) and
   [testing fixtures](/docs/starter-pro/testing-fixtures) for the checks your
   local configuration supports; do not bypass verification to meet a timebox.
5. **25–30 minutes: choose one product change.** Once the baseline works,
   choose a small branding or product-copy change and preserve the working
   auth and billing foundations. Record any integration still unverified.
   Follow [billing testing](/docs/starter-pro/billing-testing) separately in
   test mode, then complete the
   [production checklist](/docs/starter-pro/production-checklist) before launch.

### Payment or access is blocked

If payment is uncertain, contact [purchase support](/orders/support) before
paying again. Recovery does not complete an unpaid checkout. If payment is
confirmed but the email or link is missing or expired, use
[purchase recovery](/orders/recover) with the same checkout email.
A recovery confirmation does not prove a purchase exists or that an email
reached your inbox. Follow the
[recovery troubleshooting guide](/docs/starter-pro/purchase-recovery#if-recovery-does-not-work)
rather than repeatedly submitting requests.

If recovery still fails, the link shows another product, or you cannot access
the checkout email, use [purchase support](/orders/support). Include the checkout
email, product name, approximate purchase date, and the error you see. Do not
share passwords, card details, API keys, or claim/download links, including in
screenshots. No support response-time guarantee is promised.

### Local setup is blocked

Pause at the failing step. Compare the downloaded release README, required
Node.js/pnpm versions, environment values, and local PostgreSQL connection with
[local development](/docs/starter-pro/local-development). Keep the failing
command and a sanitized error for diagnosis; do not delete data, remove
validation, or switch to production credentials to get past a setup error.

If email, OAuth, or billing is not configured, use the corresponding guide and
record that flow as unverified. Continue from the last successful checkpoint
when the prerequisite is ready, even if that takes longer than 30 minutes.

## What this page helps you do

By the end of this page, you should understand:

* what to configure first
* what to validate before editing deeply
* how to avoid wasting time on low-leverage setup
* how to move from installation to real product work
* when to focus on auth, billing, backend, and branding

### The fastest serious path

Starter Pro gives you a production-ready baseline with:

* authentication
* billing
* protected routes
* settings
* dashboard structure
* backend-ready foundations
* secure delivery path

You are not starting from a blank codebase.

You are starting from a product-shaped system that is already much closer to launch.

<Callout type="info" title="Important">
  The fastest path is not rewriting everything.

  The fastest path is validating what already exists, then replacing only what belongs to your product.
</Callout>

## Setup flow

<Steps>
  <Step>
    ### Download and unzip Starter Pro

    Open your claim email and use the access link to download your package.
    Unzip it before running the setup commands below.
  </Step>

  <Step>
    ### Install dependencies

    ```bash title="terminal"
    cp .env.example .env
    pnpm install --frozen-lockfile
    ```

    Use Node 24.x and pnpm 10.32.1 from the extracted ZIP. Keep its lockfile and patches directory.

    This gives you the local baseline required to run the app,
    generate the database client,
    and validate the foundation.
  </Step>

  <Step>
    ### Configure local environment

    Start with the core variables first.

    ```bash title=".env"
    NEXT_PUBLIC_APP_URL=http://localhost:3000
    APP_BASE_URL=http://localhost:3000
    DATABASE_URL=postgresql://postgres:postgres@localhost:5433/starter_pro
    AUTH_SECRET=
    SEED_AUTH_FIXTURES=false
    SEED_DEV_USER=false
    ```

    Add optional variables only when you are ready to validate those systems.

    Generate a private `AUTH_SECRET` with `openssl rand -base64 32`.
    Prisma and Next.js both read this `.env` file.

    ```bash title=".env"
    AUTH_GITHUB_ID=
    AUTH_GITHUB_SECRET=
    AUTH_GOOGLE_ID=
    AUTH_GOOGLE_SECRET=

    STRIPE_SECRET_KEY=
    NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=
    STRIPE_WEBHOOK_SECRET=
    STRIPE_PRICE_PRO_MONTHLY=

    AUTH_RESEND_API_KEY=
    AUTH_EMAIL_FROM=
    ```

    Do not overconfigure too early.

    Get the baseline running first.
  </Step>

  <Step>
    ### Run database setup

    ```bash title="terminal"
    pnpm db:up
    pnpm exec prisma migrate deploy
    pnpm db:generate
    ```

    Start the Docker PostgreSQL service on port 5433, apply committed migrations
    and generate the database client. For a populated local workspace, explicitly
    run `pnpm db:seed:local`; keep this synthetic database separate from real users.

    The local example login is documented in the shipped `docs/quickstart.md`.
    For a fresh registration journey, configure Resend so the user can verify
    their address. See [local development](/docs/starter-pro/local-development).

    This helps you validate auth,
    users,
    billing surfaces,
    and local development flows faster.
  </Step>

  <Step>
    ### Start the app

    ```bash title="terminal"
    pnpm dev
    ```

    ```txt title="browser"
    http://localhost:3000
    ```

    Confirm that the app loads and the main product routes are reachable.
  </Step>

  <Step>
    ### Validate foundations

    Before changing product logic, confirm the important layers:

    * sign in
    * registration
    * protected routes
    * seeded users
    * billing surfaces
    * settings pages
    * dashboard shell

    This gives you confidence that the baseline works before you customize it.
  </Step>

  <Step>
    ### Replace branding and product copy

    Once the baseline is validated, update:

    * product name
    * logo
    * metadata
    * navigation labels
    * billing copy
    * email sender identity
    * marketing links

    Branding comes after validation, not before.
  </Step>

  <Step>
    ### Build your product layer

    Now add your real product:

    * domain entities
    * workflows
    * onboarding
    * dashboards
    * customer-facing features
    * internal operations

    Keep auth, billing, and protected access intact while you build your differentiation.
  </Step>
</Steps>

## Validation priorities

<DocsDecisionGrid
  columns={3}
  items={[
  {
    eyebrow: "Authentication",
    title: "Validate auth first",
    icon: LockKeyhole,
    description:
      "Confirm that the authentication foundation behaves correctly before product customization.",
    items: [
      "sign in works locally",
      "registration flow is reachable",
      "protected routes redirect correctly",
      "session-aware UI behaves correctly",
      "provider and password flows are understood",
    ],
  },
  {
    eyebrow: "Billing",
    title: "Validate billing flows",
    icon: CreditCard,
    tone: "platform",
    description:
      "Understand how billing flows work before integrating real production billing.",
    items: [
      "billing page renders correctly",
      "checkout flow is understood",
      "portal flow is understood",
      "subscription state is clear",
      "webhook responsibilities are understood",
    ],
  },
  {
    eyebrow: "Backend",
    title: "Validate the backend baseline",
    icon: Database,
    description:
      "Confirm the backend-oriented structure is ready before domain customization.",
    items: [
      "database client is generated",
      "migrations run locally",
      "seed data exists",
      "server-side boundaries are understood",
      "domain additions have a clear place",
    ],
  },
]}
/>

### What to avoid

The most common mistake is trying to redesign everything before the foundations are validated.

Avoid this order:

1. rewrite the whole UI
2. rename everything
3. add features immediately
4. ignore auth and billing validation
5. discover infrastructure issues later

That path feels productive, but it usually delays launch.

A better rule:

> validate the base first, then customize, then build the product.

## Decision guide

<PreferAvoid
  preferTitle="Prefer this path"
  avoidTitle="Avoid this path"
  prefer={[
  "install dependencies first",
  "configure only the required environment variables",
  "validate authentication and billing before redesigning",
  "replace branding after the baseline works",
  "build your product inside the existing structure",
]}
  avoid={[
  "rewriting the UI before validating the foundation",
  "configuring every integration too early",
  "removing authentication or billing before understanding them",
  "building product features on a broken setup",
  "treating Starter Pro like a blank template",
]}
/>

### Fastest path to value

If your goal is speed, focus on this sequence:

1. get the app running
2. validate auth
3. validate billing
4. validate protected routes
5. replace branding
6. add your first domain entity
7. ship the first vertical slice

This gives you the best speed-to-confidence ratio.

<Callout title="High-leverage setup">
  Starter Pro pays for itself when you avoid rebuilding the foundation and start
  building what customers actually care about.
</Callout>

### First product changes

After setup, the best first changes are usually:

* replace branding
* update metadata
* define your core domain model
* add your first real entity
* connect the first real workflow
* keep auth and billing intact

Examples:

* projects
* workspaces
* reports
* AI generations
* CRM records
* internal operations data

The exact feature does not matter.

What matters is building your product inside the existing structure instead of fighting it.

Once your first project works, use the [Starter Pro business recipes](/docs/starter-pro/recipes)
to adapt projects, tasks and comments to a concrete workflow. Each guide keeps
the included model and identifies the domain rules to add deliberately.

## When it becomes worth buying

Starter Pro becomes worth buying when your question changes from:

> Can I prototype something?

to:

> How do I launch this without burning time on auth, billing, and setup?

If that is already your question, the fastest next step is not more setup research.

It is moving to Starter Pro and building on the baseline.

<DocsFeatureGrid
  columns={3}
  tone="platform"
  items={[
  {
    title: "Production baseline",
    description:
      "Start from a product-shaped SaaS foundation instead of rebuilding the infrastructure layer.",
    icon: Rocket,
  },
  {
    title: "Launch confidence",
    description:
      "Validate authentication, billing, protected routes, and backend structure earlier.",
    icon: LockKeyhole,
  },
  {
    title: "Higher-leverage work",
    description:
      "Spend more time on customers, product logic, workflows, and distribution.",
    icon: CreditCard,
  },
]}
/>

## Next steps

<DocsLinks
  variant="grid"
  items={[
  {
    title: "What is included",
    href: "/docs/starter-pro/what-is-included",
    description:
      "Review the systems included in Starter Pro before customizing deeply.",
    icon: Package,
  },
  {
    title: "Why buy instead of building",
    href: "/docs/starter-pro/why-buy-instead-of-building",
    description:
      "Understand why buying the foundation can be a higher-leverage launch decision.",
    icon: Scale,
  },
  {
    title: "Authentication system",
    href: "/docs/starter-pro/auth",
    description:
      "Validate authentication, sessions, providers, and protected access.",
    icon: LockKeyhole,
  },
  {
    title: "Billing system",
    href: "/docs/starter-pro/billing",
    description:
      "Validate Stripe, subscriptions, invoices, billing portal, and webhooks.",
    icon: CreditCard,
  },
  {
    title: "Business recipes",
    href: "/docs/starter-pro/recipes",
    description:
      "Choose a client tracker, internal support queue or review checklist after your first project.",
    icon: Rocket,
  },
  {
    title: "Product customization",
    href: "/docs/starter-pro/customization-and-upgrades",
    description:
      "Adapt branding, navigation and appearance while keeping your upgrade baseline.",
    icon: Package,
  },
]}
/>