This section contains instructions for installing all the software required to complete this guide. You'll use most, if not all, of them to work on actual TSE projects too. If you already have something installed, just make sure it's a recent version.
Windows Subsystem for Linux (WSL) is a way to use Linux applications and tools directly on Windows. We've found that it's not necessary for our use case in TSE, as the Windows versions of our required software usually works well. But if you'd like to experiment with WSL, then feel free!
We need an integrated development environment (IDE) or text editor to write code. TSE recommends Visual Studio Code due to its industry prevalence, ease of use, and many useful extensions. You're free to use whatever you'd like, but the rest of this guide will assume that you're using VS Code.
Follow the steps below to install VS Code:
- Download VS Code for your operating system from the VS Code downloads page.
- Follow the installer instructions.
No matter what editor you choose, we strongly recommend that you also install the corresponding Prettier and ESLint extensions (and your engineering manager may require you to do so). We use Prettier to automatically format JavaScript/TypeScript code (such as fixing indentation) so it's more consistent and easier to read, and we use ESLint to make sure the code follows certain rules so it's more likely to work correctly.
Follow the steps below to install and configure the Prettier extension for VS Code:
- Navigate to the Extensions tab in the left sidebar.
- Enter "Prettier" in the search bar and select the extension published by prettier.io.
- Click Install.
- Now we have Prettier added to VS Code, but we still must configure it to auto-format files. Navigate to Settings.
- Click the gear icon at the bottom of the left sidebar, then select Settings.
- Alternatively, press
Cmd+,
or go to Code > Settings > Settings on Mac, or go to File > Preferences > Settings on Windows.
- Enter "format" in the search bar. Under "Editor: Default Formatter," select "Prettier - Code formatter."
- Finally, find the "Editor: Format On Save" option and make sure it's checked.
Similarly, install the ESLint extension published by Microsoft as well. This extension doesn't require any additional configuration.
- Check your Git version by entering
git --version
in your command prompt. - You should have version 2.x (2.30+ recommended). If not, then install the latest version from the Git downloads page.
- Check your Node version by running
node --version
. - You should have version 18.x or above. If not, then install the latest LTS (long-term support) version from the Node downloads page.
- Check your MongoDB version by running
mongod --version
. - You should have version 5.x or above. If not, then install the latest Community Edition version by following the MongoDB installation guide for your operating system. (You can also follow this alternative MongoDB setup guide if the official one is confusing.)
- Also follow the instructions to start MongoDB on your computer. Run it as a service if possible.
Here are some other tools and extensions which you might find helpful. None are required for the purposes of this todo app, though.
- Postman: Useful for manually testing backend routes before there's a frontend implementation. Alternatively, for simple requests you can also use the
curl
command. - GitLens VS Code extension: Useful for checking who last edited any particular line of code; also provides some additional UI integration for Git, such as viewing the differences in a file between previous commits.
- React Developer Tools browser extension: Useful for analyzing your React frontend component structure, such as finding out what component is rendering a particular HTML element.
Previous | Up | Next |
---|---|---|
Introduction | Part 0 | Part 0.1. Set up accounts |