Installation Node. Js

It is recommended to use NVM to manage node versions. There is no longer a paste installation modeCopy the code

Install hot Update

There are two choices: Nodemon and Supervisor. The former is selected in this paper

npm install -g nodemon
Copy the code

Install Express

npm install -g express
npm install -g express-generator
Copy the code

Generating project

cd $workspace
express $appName
cd $appName
npm i
Copy the code

Install other plug-ins

This can be installed on demand

npm i mysql 
npm i sequelize 
npm i sequelize-auto 
Copy the code

Express4.x project directory

  1. Change the root file tobin/www

WebStorm configurationRunandDebug

  1. Find the configuration menu

  2. Set options as shown