Chrome Lighthouse Audit Tool
Download nodejs
- https://nodejs.org/en/download
- extract to /nodejs
- navigate to /nodejs
to test deployment, run version command
nodejs$ ./node -v $ v10.16.0
Install Chrome
Install lighthouse
npm install -g lighthouse
Lighthouse CLI
lighthouse <url> lighthouse https://google.com
Testing NodeJS/Creating a NodeJS Server
/**
* SanityTest for NodeJS v10
*/
var http = require('http');
http.createServer(
function handler(req,res){
res.writeHead(200,{'Content-Type': 'text/plain'});
res.end('Hello World\n');
}).listen(1337, '127.0.0.1');
console.log('Server running at http://127.0.0.1:1337/');
Tags

