Level 1 — Terminal & localhost
This is the first thing every beginner trips over. The goal here isn’t mastery — it’s losing the fear.
The terminal (command line)
Section titled “The terminal (command line)”What it is. A text-based way to give your computer commands. AI coding tools live in it or next to it.
Why it matters with AI. You don’t need hundreds of commands — about ten: moving into a folder, listing files, starting and stopping a project. You mainly need to not panic when you see a window full of text.
localhost and ports
Section titled “localhost and ports”What it is. localhost is your own computer playing the role of a server —
just for you. When the AI “runs the app locally,” it lives at an address like
http://localhost:3000. Nobody on the internet can see it. It’s your sandbox.
A port (the :3000 part) is a numbered “door” on your computer. Different
programs use different doors — which is why you’ll sometimes see “port already
in use.”
Why it matters with AI. Everything the AI builds first runs on localhost. Knowing it’s private and temporary saves a lot of confusion.
- Command line crash course (MDN) — The ~10 terminal commands you actually need, explained gently.
- What is localhost? (freeCodeCamp) — localhost, 127.0.0.1 and ports explained for beginners.
A tiny exercise
Section titled “A tiny exercise”Ask your AI to start the project, open the localhost link it gives you, then
stop the process (usually Ctrl + C) and refresh the page. Watch it go dead.
Start it again. Now you know what “running locally” means.