# Scaffolding (Software)

> One command that makes the first files of a new app. You start from code that runs.

**Field:** Software Development  
**Category:** Editors & Tools  
**Also known as:** Project Scaffolding, Project Generator, Starter Template, npm create

## Think of it like

It is like a cake mix box. The hard parts are done, and you add the rest.

## Definition

Scaffolding is a tool that makes a new project's starter files for you. You run one command and answer a few questions, such as the name. It then writes the folders, the settings and a small working page. You start from something that runs, not an empty folder. In a web project, npm create vite@latest is a common one.

## Example

Lucy wants a new React app. She runs npm create vite@latest, picks React, and has a page running in a minute.

## Example code

```console
$ npm create vite@latest my-app -- --template react
$ cd my-app
$ npm install
$ npm run dev
```

Four lines make a React project, install it and start it running.

## 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.

## Common mistake

Keeping every starter file without reading it. Learn what each one does, and delete what you do not need.

## Three principles

- **One command.** Answer a few questions, get a project.
- **Runs at once.** You start from working code.
- **Then make it yours.** Change or delete what you do not need.

## Related terms

- [Vite](https://learn.benibix.com/term/development/vite)
- [Task Runner](https://learn.benibix.com/term/development/task-runner)
- [React](https://learn.benibix.com/term/development/react)
- [package.json](https://learn.benibix.com/term/development/package-json)
- [Software Framework](https://learn.benibix.com/term/development/framework)

## Taught in

- [Task Runners and Scaffolding](https://learn.benibix.com/learn/development-tools/task-runners-and-scaffolding): Coding Tools, 13/13

![A single command on the left, npm create vite@latest, asks two questions: the project name, my-app, and the framework, React. An arrow marked writes leads to a new my-app folder on the right, holding index.html, package.json, vite.config.js, a public folder, and a src folder with main.jsx and App.jsx.](https://learn.benibix.com/diagrams/dev5-scaffold.svg)

---

Source: https://learn.benibix.com/term/development/scaffolding-software
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
