What is NestJs

Nestjs backend Framework

NestJS is a server-side framework for building scalable, efficient, and maintainable Node.js applications. It is built on top of Express.js and provides a modular and intuitive structure for developing complex web applications.

Some key features of NestJS include:

  • Dependency Injection: NestJS provides a powerful dependency injection system, which makes it easy to manage dependencies and write testable code.

  • Modular Architecture: NestJS encourages a modular architecture, where each module is responsible for a specific feature or functionality of the application. This makes the codebase more maintainable and scalable.

  • Built-in Support for TypeScript: NestJS is built with TypeScript, which makes it easy to write type-safe code and catch errors early in the development process.

  • Support for WebSockets: NestJS provides built-in support for WebSockets, which enables real-time communication between the client and server.

  • Support for GraphQL: NestJS has built-in support for GraphQL, which makes it easy to create a GraphQL API and interact with it using a strongly typed schema.

Overall, NestJS is a powerful and flexible framework for building server-side applications in Node.js. It provides a set of well-organized and well-documented tools and features that can help developers build complex applications with ease.

Getting Started

As teh first step you have to make sure than you have pre installed Nodejs LTE and npm 

Once you have installed  nodejs run time and npm package manager, lets get started by installing nestjs cli tool

				
					npm i -g @nestjs/cli
				
			

Once you have successfully installed the nestjs cli tool, now you can start building your nestjs project.

Lets create our first project using the NestJs.

run the following command to generate your nest project, and choose your prefered package amanger: In my case I have selected npm as my package amanger.

				
					nest new project-name
				
			

nestjs

this might take few minutes, after successfull project initialization you will the following message

NestJs

Your fisrt Nestjs Project is ready now, you can run your project using

npm run start  command

In our next article we will discuss more about the project strcutre and components of NestJs

 

What is NestJs
Scroll to top