There's a faster version of egghead. Click here to try it.
1×
Become a member
to unlock all features

Create an egghead account to access 5000+ tutorials and resources from expert developers.

Create account
Autoplay

    Create an NestJS API in a Nx Workspace

    nodeNode.js

    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.