# Installation

import { Callout } from "fumadocs-ui/components/callout";
import { Accordion, Accordions } from "fumadocs-ui/components/accordion";
import { Step, Steps } from "fumadocs-ui/components/steps";
import { Tabs, Tab } from "fumadocs-ui/components/tabs";
import {
  Badge,
  Card,
  CardContent,
  CardHeader,
  CardTitle,
} from "@pycolors/ui";
import {
  ArrowRight,
  ArrowUpRight,
  CreditCard,
  CheckCircle,
  Code2,
  FolderTree,
  LockKeyhole,
  MonitorPlay,
  Rocket,
  Terminal,
  Wrench,
  XCircle,
} from "lucide-react";
import { PreferAvoid } from '@/components/docs/prefer-avoid';
import { DocsLinks } from "@/components/docs/docs-links";
import { DocsFeatureGrid } from "@/components/docs/docs-feature-grid";

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

  <Badge>
    Free
  </Badge>
</div>

## Overview

Starter Free is designed to get you from zero to a usable SaaS surface in minutes.

By the end of this guide, you will have a local product environment running with:

* auth screens
* dashboard
* projects
* admin
* billing
* settings

No database. No Stripe keys. No auth secrets.

Starter Free is intentionally mocked so you can evaluate the product surface before wiring backend services.

<Callout title="What Starter Free is for">
  Starter Free helps you validate product direction quickly with a production-shaped UI surface, without needing auth, billing, or database setup first.
</Callout>

## What you’ll do

<DocsFeatureGrid
  columns={3}
  tone="platform"
  items={[
  {
    title: 'Run the starter',
    description:
      'Clone the repository, install dependencies, and start the development server.',
    icon: Terminal,
  },
  {
    title: 'Validate routes',
    description:
      'Check the core product routes and confirm the SaaS surface loads correctly.',
    icon: MonitorPlay,
  },
  {
    title: 'Start editing',
    description:
      'Rename the core entity, update dashboard copy, and adapt mock data to your product.',
    icon: Code2,
  },
]}
/>

## Prerequisites

Make sure your environment includes:

* Node.js 18 or newer
* pnpm
* Git

Recommended: use the latest Node.js LTS release.

<Tabs items={["Check versions", "Install pnpm"]}>
  <Tab value="Check versions">
    ```bash title="terminal"
    node -v
    pnpm -v
    git --version
    ```
  </Tab>

  <Tab value="Install pnpm">
    ```bash title="terminal"
    npm install -g pnpm
    ```
  </Tab>
</Tabs>

<Callout type="info" title="Package manager">
  Starter Free is designed around pnpm. Using npm or yarn can create lockfile and dependency inconsistencies.
</Callout>

## Steps

<Steps>
  <Step>
    ### Clone the repository

    Clone the starter and move into the project directory.

    ```bash title="terminal"
    git clone https://github.com/pycolors-io/pycolors-starter-free.git
    cd pycolors-starter-free
    ```
  </Step>

  <Step>
    ### Install dependencies

    Install the local baseline.

    ```bash title="terminal"
    pnpm install
    ```

    This installs the starter stack:

    | Dependency area | Included           |
    | --------------- | ------------------ |
    | Framework       | Next.js App Router |
    | Styling         | Tailwind CSS v4    |
    | UI              | PyColors UI        |
    | Language        | TypeScript         |
    | Quality         | ESLint             |
  </Step>

  <Step>
    ### Start the development server

    Run the app locally.

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

    Then open:

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

    You should land on the local Starter Free product surface.
  </Step>

  <Step>
    ### Validate the starter

    Open the core routes:

    ```txt title="routes"
    /
    /login
    /register
    /dashboard
    /projects
    /admin
    /billing
    /settings
    ```

    If the routes load correctly and navigation works, the installation is complete.

    <Callout type="info" title="Expected behavior">
      Starter Free is intentionally mocked. You should be able to explore screens, layouts, and product flows immediately without backend setup or secret configuration.
    </Callout>
  </Step>
</Steps>

## First things to try

Once the app is running, make one small product change before wiring anything.

<Tabs items={["Dashboard", "Entity", "Mock data"]}>
  <Tab value="Dashboard">
    Edit the dashboard title.

    ```txt title="file"
    app/(app)/dashboard/page.tsx
    ```

    Change the heading text and save. Hot reload should update the browser instantly.
  </Tab>

  <Tab value="Entity">
    Rename the core entity.

    ```txt title="search"
    Projects
    ```

    The starter is intentionally easy to adapt to your own domain model.
  </Tab>

  <Tab value="Mock data">
    Update the mock product data.

    ```txt title="file"
    components/projects/project-types.ts
    ```

    Change the mock projects to better match your product direction.
  </Tab>
</Tabs>

## What you should see

At this point, you should have a local SaaS surface with:

* auth screens
* dashboard layout
* CRUD UI
* admin surface
* billing surface
* settings structure
* hot reload

<Callout title="Good sign">
  If the UI loads correctly and route navigation works, your setup is valid enough to begin product exploration and UX iteration.
</Callout>

## Common pitfalls

Starter Free does not require:

* database URL
* auth secrets
* Stripe keys
* email provider credentials
* backend API configuration

Everything is mocked by design.

<PreferAvoid
  prefer={[
  'use pnpm consistently',
  'validate routes before editing',
  'change one product surface first',
  'keep mock data while exploring UX',
  'wire backend only after understanding the flow',
]}
  avoid={[
  'adding database setup before the UI is understood',
  'using npm and pnpm in the same project',
  'deleting mocked flows before exploring them',
  'rewriting layout before validating product structure',
  'treating Starter Free like a complete backend template',
]}
/>

## Troubleshooting

<Accordions type="single">
  <Accordion title="Port already in use">
    Run the development server on another port.

    ```bash title="terminal"
    pnpm dev --port 3001
    ```
  </Accordion>

  <Accordion title="Node version errors">
    Check your Node.js version.

    ```bash title="terminal"
    node -v
    ```

    Upgrade to a current Node.js LTS version, then reinstall dependencies.
  </Accordion>

  <Accordion title="Using npm or yarn by mistake">
    Remove npm lockfiles and reinstall with pnpm.

    ```bash title="terminal"
    rm -rf node_modules package-lock.json yarn.lock
    pnpm install
    ```
  </Accordion>

  <Accordion title="Build issues after pulling updates">
    Clear local generated state and reinstall dependencies.

    ```bash title="terminal"
    rm -rf node_modules .next
    pnpm install
    pnpm dev
    ```
  </Accordion>
</Accordions>

## Next steps

<DocsLinks
  variant="grid"
  items={[
  {
    title: 'Project structure',
    href: '/docs/starter/project-structure',
    description:
      'Understand how the codebase is organized before extending product features.',
    icon: FolderTree,
  },
  {
    title: 'Authentication concept',
    href: '/docs/starter/auth-concept',
    description:
      'Learn how authentication is modeled before wiring a real provider.',
    icon: LockKeyhole,
  },
  {
    title: 'Billing concept',
    href: '/docs/starter/billing-concept',
    description:
      'Understand how monetization is prepared before Stripe integration.',
    icon: CreditCard,
  },
  {
    title: 'Upgrade to Starter Pro',
    href: '/docs/starter/upgrade',
    description:
      'Know when Starter Free stops being enough and Starter Pro becomes the faster path.',
    icon: ArrowUpRight,
    badge: 'Pro',
    tone: 'primary',
  },
]}
/>

<Callout title="Upgrade when wiring becomes the blocker">
  Starter Free validates the product surface. Starter Pro wires the business layer with production-shaped auth, billing, backend, and delivery foundations. → `/docs/starter-pro`
</Callout>