# Quick start (/docs/quick-start)

<Callout>
  Want to see it running before installing anything? [`try`](../cli/try-on-railway.mdx) creates a project on a free, temporary Railway VM and gives you a preview URL. You only need Node.js 22.12 or newer to run the CLI: no database or Docker on your side. Or watch real projects run end to end in the [showcase](https://starter.clubedge.live/showcase).
</Callout>

<Callout>
  Want other modules than the defaults? Pick them in the [builder](https://starter.clubedge.live/builder) and copy the command it gives you.
</Callout>

## Requirements [#requirements]

- Node.js 22.12 or newer (Node.js 22 LTS recommended).
- pnpm 10.9.0 or newer. The generated project pins its pnpm version with Corepack.
- Git, for the default repository initialization.
- Docker, only if you keep the default local services. Choose `--infra local` (PGlite) or `--infra neon` (a free hosted database) to run without it.
- [uv](https://docs.astral.sh/uv/), only for a FastAPI API (`--api fastapi`).
- Android Studio, or Xcode on a Mac, only to build the [mobile app](../starter/mobile-app.mdx) (`--shell capacitor`) or the [native app](../starter/native-app.mdx) (`--mobile expo`).

## Create a project [#create-a-project]

```npm
npx @clubedge/create-clubedge-app my-app
```

The generated project is a pnpm workspace, so dependencies are installed with pnpm either way; the CLI falls back to `corepack pnpm` when `pnpm` is not on your path. Without a destination, the CLI asks where to create the project. Interactive runs ask for a framework (Next.js, TanStack Start, [React + Vite with a separate API](../cli/frontend-and-api.mdx), which can also be packaged as a [mobile app](../starter/mobile-app.mdx), or None, for [an API without a website](../cli/without-a-website.mdx)), then, with an API, whether to add the [native app](../starter/native-app.mdx), and whether to customize the [modules](../cli/modules.mdx).

The default Starter release ships inside the CLI package, so GitHub is only contacted when you pass `--ref`. Internet access is needed to install dependencies.

## Run it [#run-it]

<Steps>
<Step>

### Start the local services [#start-the-local-services]

The project includes `apps/web/.env.local`, created from the example and pointing at the local services you chose. With a separate API, the API's settings, such as `DATABASE_URL`, are in `apps/api/.env.local`. A project without a website has only the API's file, and the native app's, `apps/mobile/.env.local`.

<Tabs items={['Docker', 'Supabase CLI', 'No Docker (local)', 'Neon', 'None']} groupId="infra" persist>
  <Tab value="Docker">
    ```sh
    cd my-app
    pnpm infra:up
    pnpm db:migrate
    pnpm check:services
    ```
  </Tab>
  <Tab value="Supabase CLI">
    Start the local Supabase stack (it needs Docker), copy the publishable key that `pnpm infra:status` prints into `apps/web/.env.local` (without a website, the API URL and the key into `apps/api/.env.local`), and apply the migrations.

    ```sh
    cd my-app
    pnpm infra:up
    pnpm infra:status
    pnpm db:migrate
    pnpm check:services
    ```
  </Tab>
  <Tab value="No Docker (local)">
    Nothing to start: `pnpm dev` runs a local PostgreSQL database (PGlite, stored in `.data/`) next to the app and applies the migrations.
  </Tab>
  <Tab value="Neon">
    The CLI created a free Neon database and wrote its URLs into the env file. Apply the migrations:

    ```sh
    cd my-app
    pnpm db:migrate
    ```

    Neon keeps it for 72 hours unless you claim it with `pnpm clubedge neon claim`. See [A database on Neon](../cli/neon.mdx).
  </Tab>
  <Tab value="None">
    Set `DATABASE_URL` and your providers' settings in `apps/web/.env.local` (`apps/api/.env.local` with a separate API), then:

    ```sh
    cd my-app
    pnpm db:migrate
    pnpm check:services
    ```
  </Tab>
</Tabs>

</Step>
<Step>

### Start the app [#start-the-app]

```sh
pnpm dev
```

</Step>
<Step>

### Open it [#open-it]

- [http://localhost:3000](http://localhost:3000): the landing page, named after your project.
- [http://localhost:3000/dashboard](http://localhost:3000/dashboard): the dashboard.
- [http://localhost:3000/api/health](http://localhost:3000/api/health): the liveness endpoint.

The pages render without connecting to providers; database and provider operations require their configuration.

Without a website, there are no pages: the API answers on port 3001, at [http://localhost:3001/api/health](http://localhost:3001/api/health), and the [native app](../starter/native-app.mdx#set-it-up) runs on an emulator or a phone.

</Step>
</Steps>

<Callout type="warn">
  The Starter is a foundation and a reference implementation. Review its security and deployment choices for your application before you go to production; see [Before deploying](../starter/before-deploying.mdx).
</Callout>

## Next steps [#next-steps]

- [Configure the environment](../starter/environment.mdx): every variable and provider.
- [Change modules later](../cli/change-a-project.mdx) with `pnpm clubedge add` and `pnpm clubedge remove`.
- [Deploy](../starter/deploy/index.mdx) to a container host, Fly.io, Railway, Render, Vercel, or Netlify.
- [Build the mobile app](../starter/mobile-app.mdx), in a project created with `--shell capacitor`.
- [Run the native app](../starter/native-app.mdx), in a project created with `--mobile expo`.
