Nest Arch

Quick start

Generate a small NestJS REST application and start its development server.

Documentation reviewed for version 1.0.0

This walkthrough uses @nest-arch/tui@latest to create a standalone NestJS REST API with Express, no database, and no authentication.

Generate the project

Run the wizard from a parent directory where you want the new project created:

npx @nest-arch/tui@latest

Choose these values when the corresponding steps appear:

Wizard stepSelection
Project namehello-nest
Package managerA manager installed on your machine, such as npm
FormatterBiome, Oxlint + Oxfmt, or none
HTTP providerExpress
Project typeSingle project
ArchitectureNestJS API
DatabaseNone
API layerREST
AuthenticationNone
Git repositoryChoose whether to initialize Git
Install dependenciesYes, or install them in the next section

Leave optional extras and addons unselected for this first project. Confirm the summary to generate the files.

Start the server

You can also generate the same API without prompts, using npm and skipping dependency installation and Git:

npx @nest-arch/tui@latest hello-nest --package-manager npm --install-dependencies no --no-git

Choose one generation method and a fresh output directory. See the headless guide for JSONC and more options.

Move into the project directory. If you skipped dependency installation in the wizard, install dependencies first:

cd hello-nest
npm install

Start the NestJS development server:

npm run dev

The generated project listens on the port configured by its environment file; open the local URL printed by NestJS. The dev script runs Nest in watch mode. See first run for setup steps when your selected project needs a database or environment variables.

On this page