From the course: Mastering Nest.js: Build Scalable Applications with Mastery in Nest.js Framework

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Understanding project structure

Understanding project structure

Now, let's understand the project structure created by the Nest CLI. First, we have the node underscore modules folder, which holds all of the installed dependencies that are required by the application. This folder is purely used for the development purpose. So when we compile the application, all these libraries are put in a bundle and deployed in the application. And I am assuming that you already know, because to work with NestJS, one should have thorough knowledge about NodeJS and ExpressJS. Moving on, we have the SRC that is source folder. This is the directory where the application source code resides. It contains the main logic and structure of the NestJS application. And inside it, we have a few bunch of files. First is the app controller dot spec file, which is nothing but a bunch of code for testing purposes, that is to execute the tests. Then we have the app controller dot ts file, which is the main file of the application. And this is where we will write the main logic…

Contents