-
Notifications
You must be signed in to change notification settings - Fork 7
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 can use the Command Prompt or PowerShell.
- Read about Unix on Wikipedia
- Unix Commands Covered
-
echo
: Print text to the terminal. -
cd
: Change directory. -
pwd
: Print working directory. (πͺ justcd
without arguments) -
ls
: List the contents of a directory. (πͺdir
)
-
- Z Shell
- Oh My Zsh for more details and installation instructions.
- curl
- πͺ Windows Users: You can look into something like starship.rs for terminal customization.
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.
- Node.js official website
- NVM GitHub repository
- πͺ Windows Users: NVM for windows GitHub repository
source ~/.zshrc
- NVM Commands covered
-
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.
-
- Confirm node.js version
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