Home > Enterprise >  Creating NestJS Controllers and Modules in a NX Workspace
Creating NestJS Controllers and Modules in a NX Workspace

Time:08-31

I am using the NX workspace's angular-nest boilerplate to get started with an App. Whenever I try to use the CLI or the NX extension to generate a controller/module etc, it gets placed in the wrong folder.

enter image description here replace "data-store-api" with the name of the nest js project name

CodePudding user response:

If you don't want to use the nx console in VSCode, you can also run the command nx g @nrwl/nest:controller <controller-name> -p <project-name>. Check out the docs on the @nrwl/nest generators and their options

  • Related