All you need to write Javascript, HTML, and CSS is TextEdit/Notepad and a Browser, the rest is just for fun:
You'll need something nice to edit text, choose one of these, or something else!
Made by microsoft, has all the things, autocompletes your Javascript, integrates with git and has a built-in terminal. If your computer is old, it might run slightly slow. If it asks you to install plugins while opening files, just say yes to everything so it can set itself up.
If you prefer using a separate terminal app, you can open files from there in VS Code with the code
command. If you are on a Mac, it needs to be set up before it will work:
- Open the Command Palette (⌘⇧P) and type 'shell command' and click 'Shell Command: Install 'code' command in PATH'
- Open a terminal. Open a file with
code ./some/file/path.html
Another good option. Runs real fast, minimal interface, has nice themes. It costs $70 for a license but you can use it for free if you don't mind an occasional nag popup
Editors that run in your terminal. These are useful for quickly editing files without opening a full editor session, and are often the easiest way to edit files on remote servers. They can be confusing, but you should be somewhat familiar with them. If you need to use one, I suggest nano path/to/some/file
since it has nice onscreen instructions.
Git typically uses Vim as its default '$EDITOR' for editing commit messages, so running git commit
without -m "Commit message"
actually opens the Vim text editor with a buffer to write your commit message. To finish the commit, you need to save the commit message, which is done in this arcane way:
- Press the ESC key on your keyboard
- type
:wq
-- what you type should appear on the bottom line of the window - Press Enter to return to commit and your terminal session
- Ask Ders for help if you get stuck because he loves Vim
Windows doesn't come with git by default, so install it from there. All the defaults are fine.
Macs come with git preinstalled, but you can get a more up-to-date version if you'd like from Homebrew -- install homebrew by pasting their install command in your terminal. Once it's installed, just run brew install git
.
Homebrew is great for downloading and managing all other command-line related software, and is highly recommended regardless of if you use it to install node.
Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. Download and install the latest LTS version from above. LTS = Long-Term Support = won't change very often.
Install Homebrew and then run brew install node@12
to get the latest LTS release.
Useful REST API client for testing http requests. Download 'Insomnia Core'