Configure your text editor and terminal for Node.js development, including configuring Atom with the platform-ide-terminal package.
- [Narrator] Let's make sure that your development environment has everything you need to follow along. You will need some sort of IDE or text editor. I will be demonstrating using Atom, available from atom.io Atom is a free, open source, and cross-platform text editor. The use of Atom is not required, but you will be able to follow along with the feature demonstrations if you have it. If you'd like to learn more, check out "Learning Atom with Ray Villalobos" here in the online training library.
Throughout the course, there's two keyboard shortcuts in Atom that will be useful to know because it's frankly faster than going up to the Menu all the time. The first is Save to save changes to a file. On a Mac, the combination is Command and S. On Windows, the combination is Control and S. The other is for the Command Palette, which is similar to Spotlight on Mac, and Windows Search on Windows. On a Mac, the combination is Command, Shift, and P. On Windows, the combination is Control, Shift, and P.
You will also need to have some sort of terminal application. Any terminal will work, including the Terminal app for Mac, and PowerShell for Windows. The only requirement is that you must be able to execute Node.js. If you choose to use Atom, and want to mirror exactly what I do, please install a terminal package called platformio-ide-terminal. I'll be executing Node commands using this terminal to help make this course cross-platform compatible. Let's install the package now.
Open up Atom, navigate up to Atom, and choose Preferences. On Windows, it's called Settings. On the left, select the vertical tab labeled Install. In the search bar, type platformio-ide-terminal and press return. The package should be listed first. Click install. If you are using a Mac, you may be prompted to install Xcode Command Line Tools.
Install it to continue. After a moment, the terminal package will be installed. You can close the settings tab now. Now that the terminal's installed, we're going to be opening it to use. The terminal can be accessed through the menu in Packages, platform-ide-terminal, and New Terminal. Of course, it's faster with a keyboard shortcut. On Mac, the combination is Command, Shift, and T.
On Windows, the combination is Alt, Shift, and T. Let's see the Terminal in action. In Atom, use the keyboard shortcut where the menu item to open the terminal. I'll take the long way this time. By navigating up to packages, platformio-ide-terminal, and selecting new terminal. I'm going to verify that Node is installed and show the version number. Type the command, node -v, and press return. I'm using 6.11.1, the longterm support version that was current during recording.
Let's verify that NPM is available as well. Type the command npm -v, and press return. I'm using version 3.10.10, which is the version that was included with the longterm support version of Node. When complete, click the X in the right corner of the terminal to close it.
- What is code quality?
- Testing and code quality fundamentals
- Coding conventions and standards
- Creating and enforcing coding standards
- Unit, integration, and functional testing
- Test-driven development test specificatons
- Behavior-driven development test specifications
- Finding errors with linting
- Extending an ESLint shareable config
- Validating correctness with unit testing
- Replacing and inspecting with stubs, spies, and mocks
- Code coverage and why it matters
- Coverage with continuous integration