Install nestjs cli
npm install -g @nestjs/cli
Create nest js project
nest new <project name>
Generate modules with nest cli
nest generate module <module name>
This would create a new modules folder and inside it, would create a modules file.
Generate controller with nest cli
nest generate controller <module name>/<controller name> --flat
--flat: This option tells the nest cli not to generate an extra folder for th controller
Generate services with nest cli
nest generate service <module name>
This would create a new service inside the folder and inside it, would create a service file.