In this post and the next posts, I will demonstrate how to kickstart a simple RESTful APIs with NestJS from a newbie’s view.


What is NestJS?

As described in the Nestjs website, Nestjs is a progressive Node.js framework for building efficient, reliable and scalable server-side applications.

Nestjs combines the best programming practice and the cutting-edge techniques from the NodeJS communities.

  • A lot of NestJS concepts are heavily inspired by the effort of the popular frameworks in the world, esp.  Angular,  Spring WebMVC.
  • Nestjs hides the complexities of web programming in NodeJS, it provides a common abstraction of the web request handling, you are free to choose  Expressjs or  Fastify as the background engine.
  • Nestjs provides a lot of third party project integration, from database operations, such as Mongoose, TypeORM, etc. to a Message Broker, such as Redis, RabbitMQ, etc.

If you are new to Nestjs like me but has some experience of Angular or Spring WebMVC, bootstrap a Nestjs project is really a piece of cake.

#rest-api #nestjs #api

How to Build RESTful APIs with NestJS
2 Likes14.55 GEEK