Skip to content

Backend Build and Run

This section explains how to build and run the NestJS backend.

Installation

From the repository root:

cd backend
npm install         # or `npm i`

Development

To run in development mode with hot reload:

cd backend
npm run start:dev

The server will start on http://localhost:3000 (or as configured).

Production Build

To build for production:

cd backend
npm run build

This compiles TypeScript to JavaScript in the dist/ folder.

Running in Production

After building:

cd backend
npm run start:prod