Tuesday, August 16, 2016

Notes on Node.js using Express.js

To install Express for the first time:
npm install -g express-generator

Install Express files in a directory
express [PROJECTNAME]

Then install package.json after checking it has what you want
npm install

To start Node.js using Express on Windows cmd:
set DEBUG=[SERVERNAMEHERE]:* & node index.js

No comments:

Post a Comment