Skip to main content
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.12 or newer (22, 24 or 26). create-gato-app checks Node against the kit version’s engines.node and refuses an unsupported version before it downloads the kit.
  • 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.

Steps

1

Create the project

create-gato-app downloads the latest kit release and asks a few questions. Then it assembles my-app/, writes .env with freshly generated secrets, runs npm install and makes the first commit:
With uploads it also asks where files go, and without --setup it asks whether to set up the database now. To skip the questions, pass the answers as flags: npx create-gato-app@latest my-app --yes --setup --admin-email [email protected].
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:
Copy the password now; running the command again does not show or change it.
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.
2

Start the app

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

Sign in

Open 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.
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 to change this.
4

See an email

Sign out, open /en/forgot-password and enter your address. Then open mailpit at 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.
  • 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.

Next steps

Installation

All ways to create a project, .env, runtime modes and troubleshooting.

Architecture

How the kit, core and modules fit together, and who checks what on each request.

Build a feature

Add your own feature with organization-scoped data.

Add a module

Audit logs, API keys and file uploads.