The tutorial demonstrates setting up a new NestJS project using the CLI. It covers project initialization, folder structure configuration in VS Code, code adjustment, and server deployment. Finally, it validates the backend service by sending a GET request via Postman to verify the Hello World response.
Length 4:50
Captions English (Generated), Spanish (Auto-translated), French (Auto-translated), Korean (Auto-translated), Portuguese (Auto-translated), Vietnamese (Auto-translated) #nestjs #backend #typescript #vscode #api #rest #postman #programming #web development #node.js
0:00 All right, so we're ready to go ahead and get started with setting up our back 0:04 end 0:04 that our Next.js app will actually talk to. 0:07 So in this course, we're gonna use Nest.js as our back end, 0:10 which is a very 0:11 popular Node.js framework that makes it really easy to get up 0:15 and running with REST APIs and CRUD 0:18 functionality built with a very clean architecture. 0:22 So let's go ahead and get started by creating our Nest.js 0:25 back end 0:26 using the CLI. So if you don't have the CLI, 0:29 you can obtain it by running npm install -g 0:33 global 0:35 @nestjs/cli@latestversion. So once 0:39 we have the Nest.js CLI installed, we're gonna go ahead 0:41 and use it to create a new 0:42 project by running nest new, and then I'll call this 0:46 shoppy-backend for my application. 0:49 You can use whatever package manager you'd like. 0:52 I like to use pnpm for its fast installation speed, 0:56 thanks to its common global caching. 1:00 I'm gonna go ahead and CD into the back end now that we've 1:04 set it up. So now back in VS Code, I'm gonna go ahead and open 1:08 up our back end by going to File and then Add 1:12 Folder to Workspace. Then I'm gonna go ahead 1:14 and add the back end. 1:16 And now we have this workspace where we have the UI and back end both in our 1:20 editor. I'll go ahead and save this workspace as 1:24 shoppy.codeworkspace. So now we can see our 1:28 Nest.js back end that was created for us by the CLI. 1:32 This is gonna look very familiar if you've used Nest.js before, which is 1:36 written entirely in TypeScript, so we have a ts config out of the 1:39 box with some sensible defaults. 1:42 We then next have the package.json with some scripts here, 1:46 including one to start a development server,
The rest of the transcript is for members.
Sign in