> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gatojs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> Create a GatoJS project with create-gato-app, start PostgreSQL and mailpit in Docker, create the first admin and sign in to a running multi-tenant Next.js app in minutes.

This guide takes you from an empty directory to a running GatoJS app with a database, a first admin account and a local inbox for its emails. Budget about five minutes, most of it `npm install` and Docker pulling images.

## Before you start

* **Node.js 22 or newer.** `create-gato-app` refuses to run on an unsupported version before it downloads anything.
* **Docker with Compose v2** (the `docker compose` command). The database and the mail catcher run in containers.
* **git**, with `user.name` and `user.email` set. The new project gets a first commit.
* Free local ports **3000** (app), **5432** (PostgreSQL), **8025** and **1025** (mailpit). If one is taken, see [Change ports](https://docs.gatojs.com/installation.md#change-ports).

## Steps

**1. Create the project**

```bash theme={null}
npx create-gato-app@latest my-app --setup
```

`create-gato-app` downloads the latest kit release, copies the core into `my-app/`, writes `.env` with a freshly generated `BETTER_AUTH_SECRET`, runs `npm install` and makes the first commit. It then asks a few questions:

| Question | What to answer |
| - | - |
| Modules | Optional modules on top of the core (`audit-logs`, `api-keys`, `uploads`). Pick none for now; you can [add them later](https://docs.gatojs.com/cli/add.md). |
| Languages | `pl` is always on; keep `en` checked. |
| Display name | The app name shown in the UI and emails. Defaults to one derived from the directory name. |
| Admin email | Your email address. The first admin account is created with it. |

> [!NOTE]
>
> The interactive prompts are currently in Polish (for example `Moduły`, `Języki`, `Email admina`). They map one-to-one to the table above. To skip them, pass the answers as flags: `npx create-gato-app@latest my-app --yes --setup --admin-email you@example.com`.

With `--setup`, the command also does the database work for you:

1. `docker compose up -d --wait` starts PostgreSQL 16 and mailpit and waits until they are healthy.
2. `npx prisma migrate dev --name init` creates the first migration and applies it.
3. `npm run admin:create -- --email <your email>` creates your admin account and the first organization.

The last step prints the generated password **once**:

```text theme={null}
Utworzono administratora you@example.com
Utworzono organizację cm3x…
Wygenerowane hasło (pokazane raz): 8fQ…
```

The output says "Admin created", "Organization created" and "Generated password (shown once)". Copy the password now; running the command again does not show or change it.

> [!TIP]
>
> Left the admin email empty, or the setup failed half way? The command prints the remaining steps. You can always run them yourself, as described in [Manual setup](https://docs.gatojs.com/installation.md#manual-setup).

**2. Start the app**

```bash theme={null}
cd my-app
npm run dev
```

The server is ready when it prints `http://localhost:3000` and `✓ Ready`.

**3. Sign in**

Open [http://localhost:3000/en/sign-in](http://localhost:3000/en/sign-in) and sign in with your email and the generated password.

You land on `/dashboard` with a "Welcome" card. The sidebar has **Dashboard**, **Users** and **Account**.

> [!NOTE]
>
> Polish is the default locale, so paths without a prefix (`/sign-in`) serve Polish unless your browser prefers English. English lives under `/en/…`. There is no page at `/`, so it returns a 404. See [Internationalization](https://docs.gatojs.com/guides/i18n.md) to change this.

**4. See an email**

Sign out, open `/en/forgot-password` and enter your address. Then open mailpit at [http://localhost:8025](http://localhost:8025): the password reset email is there.

Every email the app sends locally goes to mailpit, never to a real inbox. That includes the welcome email from **Users → Invite user** and organization invitations.

## What you have now

* A Next.js 16 app in `my-app/` with the GatoJS core: sign-in, invitations, organizations, users, account and dashboard. All of it is plain code in `src/`. See [Project structure](https://docs.gatojs.com/project-structure.md).
* A PostgreSQL database named after your project (`my_app`), stored in `volumes/postgres/` so it survives `docker compose down`.
* One organization with you as its `owner`, and an account with the global role `admin`.
* The app runs in single-organization mode with public sign-up off. Both are one flag away; see [Runtime modes](https://docs.gatojs.com/installation.md#runtime-modes).

## Next steps

> [card] [Installation](https://docs.gatojs.com/installation.md)
>
> All ways to create a project, `.env`, runtime modes and troubleshooting.

> [card] [Architecture](https://docs.gatojs.com/concepts/architecture.md)
>
> How the kit, core and modules fit together, and who checks what on each request.

> [card] [Build a feature](https://docs.gatojs.com/guides/build-a-feature.md)
>
> Add your own feature with organization-scoped data.

> [card] [Add a module](https://docs.gatojs.com/modules/overview.md)
>
> Audit logs, API keys and file uploads.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.