Skip to content

A boilerplate for building production-ready RESTful APIs using NestJS

Notifications You must be signed in to change notification settings

blockcoders/nestjs-api-boilerplate

Repository files navigation

NestJS Api Boilerplate

REST API NestJS Quick Start

Environment setup

  • Install Node.js
    • Recommended method is by using NVM
    • Recommended Node.js version is v16.13
  • Install Docker

Get Started

Install all the dependencies:

pnpm i --frozen-lockfile

Copy the .env.sample file to .env

cp .env.sample .env

In the project directory, you can run:

pnpm start:dev

Runs the NodeJs services in the development mode.
Open localhost:8080/api/v1/ping to view it in the browser or Postman.

The service will reload if you make edits.

Test

pnpm test

Running the unit tests.

pnpm test:cov

Running the test coverage.