A developer installs the NestJS CLI, scaffolds a new project named Sleeper, and verifies the backend with Postman. The workflow continues by converting the project into a monorepo structure and generating a common library to share code modules across future microservices.
Length 5:14
Captions English (Generated), Spanish (Auto-translated), French (Auto-translated), Korean (Auto-translated), Portuguese (Auto-translated), Vietnamese (Auto-translated) #nestjs #cli #monorepo #microservices #programming #backend #tutorial #vscode #postman #development
0:00 Okay, so we're ready to get started creating our 0:02 app. 0:03 We're gonna be making heavy use of the Nest CLI in this course. 0:07 It's gonna help us quickly and efficiently scaffold our 0:10 microservices and allow us to add to our 0:13 application as we develop it over time very easily, and it's 0:17 super simple to install if you don't already have it. 0:20 Just make sure you run npm install -g, for 0:24 global, the nestjs/cli. 0:28 So if you get a permissions error when installing the CLI, 0:31 just make sure you run 0:31 this command in pseudo mode and enter your password. 0:35 So after we have the CLI installed, we are gonna use it to generate 0:38 a new project, and we're gonna call this Sleeper. 0:42 This Airbnb clone, we are going to call it Sleeper with an 0:46 R. Feel free to call it whatever you'd like. 0:48 And we'll go ahead and scaffold the application. 0:51 For this app, I'm gonna make use of pnpm as my package 0:54 manager 0:55 because it is the quickest as it caches your 0:59 node modules and makes it a lot easier to run installation. 1:03 So after our project is fully initialized, we're gonna CD into the 1:07 Sleeper directory, and we can simply run pnpm run 1:11 start to make sure that our application backend server will 1:15 start up. And we can see that our Nest application has successfully 1:18 started. Okay, so I've gone ahead and opened up the project in 1:22 VS Code, which is the code editor I will be using. 1:25 And of course, by default, we have the bare bones of a NestJS 1:29 application out of the box with our main.ts file 1:32 creating the Nest application through the app module, and 1:36 then listening on HTTP port 3000 for 1:40 incoming requests. And out of the box, we have a 1:44 single app.controller, which is a get route that
The rest of the transcript is for members.
Sign in