Create an NestJS API in a Nx Workspace

InstructorBram Borggreve

Share this video with your friends

Send Tweet

In this lesson we use the @nrwl/nest plugin to create a NestJS API.

Inside our Nx Workspace we install the dev dependency @nrwl/nest and use the app schematic that it provides to generate an app called api.

Once the app is generated, we take a look at the main entry file, main.ts and analyze the bootstrap function, and the AppModule that gets bootstrapped.

After that, we create a shortcut inside package.json to quickly start our API and then we verify that the API endpoint works as expected.