npm install and Docker pulling images.
Before you start
- Node.js 22 or newer.
create-gato-apprefuses to run on an unsupported version before it downloads anything. - Docker with Compose v2 (the
docker composecommand). The database and the mail catcher run in containers. - git, with
user.nameanduser.emailset. 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, 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: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 [email protected].--setup, the command also does the database work for you:docker compose up -d --waitstarts PostgreSQL 16 and mailpit and waits until they are healthy.npx prisma migrate dev --name initcreates the first migration and applies it.npm run admin:create -- --email <your email>creates your admin account and the first organization.
2
Start the app
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 insrc/. See Project structure. - A PostgreSQL database named after your project (
my_app), stored involumes/postgres/so it survivesdocker compose down. - One organization with you as its
owner, and an account with the global roleadmin. - 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.