January 2017
Jacksonville Salesforce Developers
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
var http = require('http');
var hostname = '127.0.0.1';
var port = 1337;
http.createServer(function (req, res) {
res.writeHead(200, { 'Content-Type': 'text/plain' });
res.end('Hello World\n');
}).listen(port, hostname, function () {
console.log(`Server running at http://${hostname}:${port}/`);
});