Template

Getting started

Set up the starter locally and get the app running in a few minutes.

This starter is a production-ready foundation for a web product: authentication, organizations, internationalization, an MDX content system, and a typed Postgres data layer, all wired together with Next.js.

Prerequisites

  • Node.js and pnpm (see package.json for the exact versions)
  • A Postgres database (any provider works)

1. Install dependencies

pnpm install

2. Configure your environment

Development values live in the committed .env. Point DATABASE_URL at your database and set the auth and email keys. Every variable the app reads is declared and validated in src/env.ts.

3. Apply the database schema

pnpm db:migrate

4. Run the dev server

pnpm dev

The marketing site, docs, and blog are public; the dashboard lives under /o behind authentication.

Next steps

See Project structure for a map of the codebase, then start adding your own routes under src/app.

On this page