Day 1 — Project Setup Time
Foundations & build/Project Setup Time
Project Setup Time
Your takeaway: Create the same JavaScript, ESLint, Tailwind, src-directory, and App Router project on Windows or macOS.
Topic 2 · create the project
Pick your laptop OS — follow only that checklist.
We keep setup simple: JavaScript only (no TypeScript), with ESLint on so Day 2 can continue in the same project cleanly. First get your terminal into the right folder, then run create-next-app.
Before you start (everyone)
- Node.js LTS must already be installed (check Home → Prerequisites)
- Do not create a project inside another Next.js / React project folder
- The command creates a new folder named
my-profile-cardinside the folder you opened - Stay connected to Wi‑Fi — the first install downloads packages
Choose a folder to save your project
Open Finder and create a simple folder, for example on your Desktop named workshop.
- Good:
Desktop/workshoporDocuments/workshop - Avoid spaces and symbols in the folder name when possible
- If Desktop/Documents are synced with iCloud, waits/freezes during install are common — a local folder is safer
Open Terminal in that folder
Easiest method:
- In Finder, right-click (or Control-click) your
workshopfolder - Choose New Terminal at Folder (sometimes under Services)
Don't see "New Terminal at Folder"?
Backup method (always works):
- Open Terminal (Spotlight: Cmd + Space, type Terminal)
- Type
cd(with a space), then drag yourworkshopfolder into the Terminal window and press Enter
1pwdpwd should print something like /Users/alex/Desktop/workshop.
Confirm Node.js works
1node --version2npm --versionYou should see version numbers (Node should be v20.9+).
Common error: command not found: node / npx
Create the Next.js app
Stay inside your workshop folder (parent folder), then run:
1npx create-next-app@latest my-profile-cardIf asked Ok to proceed?, type y and press Enter. Then choose the options below.
- Ok to proceed?→ y
- Would you like to use the recommended Next.js defaults?→ No, customize settings
- Would you like to use TypeScript?→ No
- Which linter would you like to use?→ ESLint
- Would you like to use React Compiler?→ Yes
- Would you like to use Tailwind CSS?→ Yes
- Would you like your code inside a `src/` directory?→ Yes
- Would you like to use App Router? (recommended)→ Yes
- Would you like to customize the import alias (`@/*` by default)?→ No
- Would you like to include AGENTS.md to guide coding agents to write up-to-date Next.js code?→ No
Popular macOS issues during create-next-app
- Permission denied → make sure you own the folder (create it yourself on Desktop). Do not install into system folders
- EEXIST / folder already exists → delete the incomplete
my-profile-cardfolder in Finder, then rerun the command - Stuck on install / iCloud downloading → wait for cloud sync to finish, or move the workshop folder out of iCloud Desktop/Documents
- xcode-select / developer tools prompt → click Install and wait; some Macs need Command Line Tools once before npm packages finish
Enter the generated project folder
1cd my-profile-cardYour terminal path should now end with my-profile-card. Stop here—we will inspect the generated files before starting the development server.
Open the project in VS Code
Open the generated project folder:
- In Finder, right-click
my-profile-card→ Open With → Visual Studio Code, or - In VS Code: File → Open Folder… and select
my-profile-card, or - From Terminal (already inside
my-profile-card):
1code .command not found: code?
macOS tip