Nestjs: Getting Started
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.
- Install Node.js and npm on your machine if you haven’t already.
- 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