Get your API key

Lesson 5 of 5

Run a project someone gave you

npm install, npm run dev, reading the output, busy ports, stopping the server and handing errors to the AI.

9 min Log in to open
One step at a time, like flipping pages.

By the end of this lesson you will run a web project that someone (or an AI) gave you, with npm install and npm run dev, read what the terminal tells you, and hand any error to the AI.

You need: Node.js LTS installed (set up your computer) and a project folder, for example one your agent made · Time: 9 minutes

  1. Open a terminal in the project folder (how) and list what's there:

    Four names to know:

    • package.json: the project's recipe card. It lists the packages (ready-made code from other people) the project needs, and its scripts (short names for commands, like dev).
    • README.md: the instructions. Read it first; it often says exactly which commands to run.
    • node_modules: the folder where packages get downloaded. It can hold thousands of files. Never edit it and never commit it to Git.
    • .env.example: if present, a list of settings the project needs, without the real values.
    Why?

    The README and package.json answer "how do I run this?" before you ask anyone. Many projects need one extra step (like copying .env.example to .env) that only the README mentions.

Log in free to read the rest of this lesson

Every lesson is free. A free account unlocks all of them and saves your progress.

Still to come in this lesson:

  1. Install the packages
  2. Start the app with npm run dev
  3. Two terminals: one runs, one talks
  4. Read what the terminal tells you
  5. Hand the error to the AI
  6. Recap