Nestjs: Getting Started

Sunil Kumar
3 min readMay 7, 2023

NestJS is a progressive Node.js framework for building scalable, efficient, and maintainable server-side applications. It uses modern JavaScript, is built with TypeScript (a typed superset of JavaScript), and combines elements of object-oriented programming (OOP), functional programming (FP), and reactive programming.

Let's start building our first nestjs app.

  1. Install Node.js and npm on your machine if you haven’t already.
  2. Open a terminal or command prompt and install the Nest CLI globally by running the following command: I am using VS code as an editor.
npm install -g @nestjs/cli

3. Create a new NestJS project by running the following command:

nest new Nestjs-rest-api-demo

4. This will create a new project folder named “Nestjs-rest-api-demo” and install all the required dependencies. The code is saved as part Chapter 1 in my git repo https://github.com/Sunilrana1978/Nestjs-rest-api-demo/tree/chapter1

--

--

Sunil Kumar

With an extensive professional experience spanning over 16 years in the IT industry, I am a seasoned expert in AWS Cloud, DevOps, FastAPI, and Python.