🛠️Scaffolding (Software)
Also known as Project Scaffolding, Project Generator, Starter Template, npm create
One command that makes the first files of a new app. You start from code that runs.
Think of it like
It is like a cake mix box. The hard parts are done, and you add the rest.
Example
Why it matters
Setting up a project by hand takes hours and is easy to get wrong. The starter follows the tool's own best layout.
Definition
Example code
console
$ npm create vite@latest my-app -- --template react
$ cd my-app
$ npm install
$ npm run devCommon mistake
Key takeaways
- 1One command. Answer a few questions, get a project.
- 2Runs at once. You start from working code.
- 3Then make it yours. Change or delete what you do not need.