This guides the installation and usage of a variety of development tools on the Windows 10 platform.

Getting Started

Shell

Many actions are executed from the command line (CLI). Use either command prompt or powershell. Powershell provides more unix-like commands and is what I mostly use.

  • Command prompt with WinKey-R then cmd

  • Powershell with WinKey-R then powershell

File Locations

For ease of access from the CLI, I create a folder name code on the root of C: drive. From CLI, mkdir \code.

Node

Install the LTS or current version of node for your platform. See https://nodejs.org/en/. This also install npm.

Check the newly installed version with node -v.

Global Installs

Gulp Task Runner

Gulp is installed into the project directories but gulp-cli is installed globally. npm install -g gulp-cli.

Express Application Generator

  • npm install express-generator -g

Project Installs

  • cd \code\projectname

  • Initiate node, npm init. Answer the questions or choose the defaults.

Express Framework

  • npm install express --save

ESLint

  • npm install --save-dev eslint

  • ./node_modules/.bin/eslint --init

    • I use the popular style guide Airbnb

Lint the files with ./node_modules/.bin/eslint yourfile.js or using a task runner. Use the --fix flag to automatically fix errors.

Gulp Task Runner

  • npm install --save-dev gulp

Asciidoctor

  • npm install --save-dev asciidoctor.js

  • npm install --save-dev gulp-asciidoctor