0
0
NestJSframework~5 mins

Project scaffolding in NestJS - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is project scaffolding in NestJS?
Project scaffolding in NestJS means creating the basic folder and file structure automatically to start a new app quickly.
Click to reveal answer
beginner
Which command creates a new NestJS project with default structure?
The command nest new project-name creates a new NestJS project with all basic files and folders set up.
Click to reveal answer
beginner
Name three main folders created by NestJS scaffolding.
The main folders are src (source code), test (tests), and node_modules (dependencies).
Click to reveal answer
beginner
Why is using NestJS CLI for scaffolding helpful?
It saves time, ensures best practices, and sets up a working project with correct configs and dependencies.
Click to reveal answer
beginner
What files are included in the NestJS scaffold for app configuration?
Files like main.ts (app entry), app.module.ts (root module), and package.json (project info) are included.
Click to reveal answer
Which command do you run to create a new NestJS project?
Anest generate project
Bnpm start
Cnest new my-app
Dnode app.js
What folder contains the main source code in a NestJS scaffolded project?
Adist
Blib
Cbin
Dsrc
Which file is the entry point of a NestJS application?
Amain.ts
Bindex.html
Capp.module.ts
Dserver.js
What benefit does NestJS CLI provide when scaffolding a project?
ASets up project with best practices
BCreates random files
CDeletes old projects
DRuns the app automatically
Which file contains project dependencies in a NestJS scaffold?
Atsconfig.json
Bpackage.json
CREADME.md
Dmain.ts
Explain what happens when you run nest new to scaffold a project.
Think about the steps the CLI automates for you.
You got /4 concepts.
    Describe the purpose of the src folder in a NestJS scaffolded project.
    Where do you write your NestJS code?
    You got /3 concepts.