Skip to content

Quickstart

  1. Create a Routa project.

    Terminal window
    pnpm create routa-ts@latest
  2. Enter the project and install dependencies if the create command did not install them.

    Terminal window
    cd routa-app
    pnpm install
  3. Start development mode.

    Terminal window
    pnpm dev
  4. Run the checks used before shipping.

    Terminal window
    pnpm check
    pnpm build
    pnpm openapi:check

pnpm dev runs routa dev, which validates the route graph, writes .routa/routes.gen.ts, typechecks the project, and starts the internal development server.

Use src/routes as the source of truth for the HTTP contract.