Local Setup
Get a project running from its own folder using written steps and safe settings, without installing services you do not need.
Content date: October 15, 2026.
Plain English
Local setup means getting one project to run on your own computer. It covers the tools, files, commands, settings, and checks the project needs. Not every project needs a database, a container (a packaged mini-computer), or an AI model running on your machine. A good setup writes down what is really needed and how to tell it started correctly.
Use this when
Do this before your first code change, when a preview will not start, or when someone new needs to run the project without borrowing the original author's computer.
If you are just starting
For the $0 starter you need a web browser, a text editor, and a free hosted AI tool, with its files saved in a folder on your computer. The architecture practice also needs Node.js, a free program that runs JavaScript outside the browser. As of October 2026, install the version labeled LTS (long-term support), which is Node 24. Node 22 is still supported, and Node 26 is the newest but not LTS. On Windows use PowerShell and quote paths with spaces. On macOS or Linux use your normal terminal. Write down your operating system and tool versions.
When your project grows
Work in a clean copy of the project in its own folder, with the runtime and package manager it documents. Read install scripts before you run them. In an npm project with a package-lock.json, npm ci installs exactly what the lockfile says and stops with an error if it does not match package.json. It also deletes and recreates node_modules, so run it only in the folder you mean to. Add fake sample data and test services only when needed. Write down the ports (numbered doorways on your computer) the project uses and how to shut it down.
Worked example
Rosa's preview command fails with "cannot find package.json." She is in her Documents folder, one level above the project. She finds the folder that holds package.json, moves into it, and runs the documented start command. The site loads. She does not install a new framework or delete the project, because the only problem was the folder she was standing in.
Practice
Run from a clean practice folder
- Choose the architecture practice files linked below, or a project you have permission to copy.
- Save the files in a new, empty folder, or make a separate copy of the project. Do not overwrite existing work.
- Read the README and scripts. Write down your operating system, your Node.js version (run node --version), and any settings needed.
- Run only the documented commands. For the practice files, run node --test verify.mjs in that folder and confirm the tests pass.
- Repeat in a second empty folder or a new terminal window. Write down anything missing and add shutdown steps.
Deliverable: A setup note someone else could follow, with commands, versions, what you saw, and anything still unresolved.
Common mistakes to watch for
- The project runs only because of a tool or password installed years ago and written down nowhere.
- A local preview quietly connects to the real customer database.
- You run a delete or install command one folder above the project.
- Another program already uses port 3000, and you spend an hour debugging code that is fine.
- You download a 19 GB AI model onto a laptop with 8 GB of memory.
Prompting
A weak prompt
Install whatever is missing and make it work on my machine.
A better prompt
Look at this project's setup files before you install or run anything. Write down my operating system, Node.js and package-manager versions, the project's commands, the names (not values) of required settings, and the ports it needs. Work in a separate copy with made-up data, keep my existing work, and use no production passwords. Start only the services needed, show a visible result that proves it works, and note how to shut it down. Use a free hosted AI tool; a local model is optional, after we check my hardware and its license.
Writing down what the project really needs separates facts from one computer's hidden habits, so anyone can run it and practice never depends on paid infrastructure.
Check before you move on
- You confirmed you are in the right project folder and wrote down your OS and Node.js version.
- You read every script before running it, and no production passwords are available.
- You saw the expected result and wrote down how to stop the project.
You are done when
- The project runs from its documented files and prerequisites in a clean folder.
- Any step that only works on your computer, or that you did not test, is written down.
Questions to think about
A friend says every beginner should install a local AI model to follow the course. Is that right?
No. A free hosted AI tool works fine, and editing files locally does not require running a model there. A local model needs enough memory and space and a license that suits your use.
npm ci stops with a message that the lockfile and package.json do not match. What next?
Look at what changed in each file and decide which is correct. Deleting the lockfile hides the mismatch and can install versions the project was never tested with.
Your server starts, but sign-up fails because the test email service is not running. Is setup finished?
Not for sign-up. Write down the missing service, or say you only showed the parts that work without it. A start-up message does not prove the workflow works.