What this page does
Installs Node.js, which runs JavaScript and React projects.
Where this fits
Homebrew is installed. Now use it to install Node.js.
Code (this page)
Explanation
In Terminal, type the command above and press Enter.
Wait for installation to complete.
Verify it worked:
You should see a version number like v20.x.x.
Why this matters
Node.js is required to run React applications. It includes npm (Node Package Manager).
✓ Checkpoint
⚠ If something breaks here
brew: command not found: Homebrew didn't install, redo Page 1
- Already installed: You'll see a message — that's fine, continue
What this page does
Creates a new React project folder with all required files.
Where this fits
Node.js is installed. Now create the project that will run Particle Life.
Code (this page)
mkdir ~/projects
cd ~/projects
npx create-react-app particle-life
Explanation
Run these commands one at a time in Terminal:
mkdir ~/projects — Creates a projects folder
cd ~/projects — Enters that folder
npx create-react-app particle-life — Creates the React project
The last command takes 2-3 minutes. Wait for it to finish.
Why this matters
React projects need a specific folder structure. This command sets it all up automatically.
✓ Checkpoint
⚠ If something breaks here
mkdir: File exists: The projects folder already exists — that's fine, continue with cd
- Network errors: Check internet connection, try again
What this page does
Confirms Particle Life is running.
Where this fits
The code is saved. The browser should update automatically.
Explanation
Look at your browser (the one showing localhost:3000).
The page auto-refreshes when you save. You should see colorful particles interacting.
Use the controls on the right to:
- Change presets (Random, Symmetric, Chains, etc.)
- Adjust settings (particles, friction, force)
- Enable trails
- Save and load configurations
Why this matters
You did it. Particle Life is running locally on your Mac.
✓ Checkpoint
⚠ If something breaks here
- Browser shows errors: Make sure you copied ALL the code and saved
- Nothing changed: Check Terminal is still running
npm start
- Black screen: Wait a moment, or refresh the browser
🎉 Congratulations!
Particle Life is running on your Mac.
To run again later:
cd ~/projects/particle-life
npm start
To stop: Press Control + C in Terminal.