-
Notifications
You must be signed in to change notification settings - Fork 8
Workflow: Terminal, Shell, Node, VSCode
Daniel Shiffman edited this page Oct 30, 2023
·
11 revisions
- Introduction
- Terminal Basics
- Shell (ZSH) and Oh My Zsh
- Installing Node.js using NVM
- Code Editor: Visual Studio Code
- π₯ Working with Data and APIs in JavaScript
- π₯ 2018 Workflow Series
- π₯ Git and GitHub for Poets
- π Mac Users: Use terminal found under Applications > Utilities or download iTerm.
- πͺ Windows Users: You might use the start command or PowerShell.
- Read about Unix on Wikipedia
- Unix Commands Covered
-
echo
: Print text to the terminal. -
pwd
: Print working directory. -
cd
: Change directory. -
ls
: List the contents of a directory.
-
You can install node.js through the node website or using NVM (Node Version Manager). For the tutorials, using Node version 18.18 is recommended.
source ~/.zshrc
-
nvm install <version>
: Install a specific version of Node. -
nvm use <version>
: Switch to a specific version of Node. -
nvm list
: List installed Node versions. -
nvm alias default <version>
: Set the default version of Node.
node --version
{
"editor.tabSize": 2,
"editor.renderWhitespace": "all",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"javascript.preferences.quoteStyle": "single",
"prettier.singleQuote": true,
"editor.fontSize": 24,
"editor.wordWrapColumn": 120,
"prettier.printWidth": 120,
"diffEditor.hideUnchangedRegions.enabled": true
}
- Create
index.html
file along withsketch.js
- Install Live Preview extension.
- π₯ See more in Hosting a p5.js sketch with GitHub Pages