Skip to content

Quick Start

Full backend running in five minutes. Postgres, GraphQL, Auth, and Nginx — on your machine or any server.

macOS:

Terminal window
brew install nself-org/nself/nself

Linux / WSL:

Terminal window
curl -sSL https://install.nself.org | bash

After install, verify:

Terminal window
nself version
Terminal window
nself init myapp

The wizard asks four questions. Accept the defaults for local dev.

PromptDefault
Project namemyapp
Base domainlocalhost
Services to enablePostgres, Hasura, Auth, Nginx
Postgres passwordAuto-generated

Skip all prompts: nself init myapp --fast

Terminal window
nself build

Generates docker-compose.yml, Nginx config, and SSL certs. Takes a few seconds.

Terminal window
nself start

Boots in dependency order. Each service prints its status:

✓ postgres healthy (2s)
✓ hasura healthy (8s)
✓ auth healthy (5s)
✓ nginx healthy (1s)
Terminal window
nself urls
Service URL
─────────────────────────────────────────
Hasura https://hasura.localhost
Auth https://auth.localhost
GraphQL API https://api.localhost/v1/graphql

Open the Hasura console and run a query to confirm the API is live:

query { __typename }
Terminal window
nself stop

Shuts down cleanly. Docker volumes keep your data.


Next: First Project · Add plugins · Configuration

Installation