June 2018
1995
Java
JavaScript
2009
* None of these assumptions is true
npm init
npm install
npm install module
npm install module --save
npm test
npm start
walkthrough creating pkg.json
will grab your dependencies
installs individual module
installs includes in your dependencies
runs your unit tests
starts and runs your app
// Example from Nodejs.org/en/about
const http = require('http');
const hostname = '127.0.0.1';
const port = 3000;
const server = http.createServer((req, res) => {
res.statusCode = 200;
res.setHeader('Content-Type', 'text/plain');
res.end('Hello World\n');
}).listen(port, hostname, () => {
console.log(`CodeImpact Server running at http://${hostname}:${port}/`);
});