Understanding Controllers and Routes in NestJS

A guide to understanding NestJS controllers and routes

NestJS is a Node.js web framework built with TypeScript used to build scalable server-side applications. The server side of an application, which does not have UI elements, performs important logic like handling requests, sending responses, storing data in a database, and much more.

Controllers and routes play an important role in server-side applications. In this article, we’ll take a look at routes and controllers in NestJS. We will cover: A brief review of server-side (HTTP) requests, Defining NestJS routes and controllers, Creating our NestJS project, Creating our own NestJS routes and controllers, Setting up the database and ORM and more