Misc

Rob SOAP Markdown CLI - Windows CLI - Unix Git NodeJS jslint Batch File Animation Tools React JS Sublime Shortcuts
O O

Weather Controls

Time Of Day
Rain
Wind Speed
Wind Direction
Clouds

Misc : NodeJS

2018-03-10

Test if Node is Installed

node -v

To install (or update on windows) - download installer and run it: https://nodejs.org/en/download/

Run A Local Webserver

  1. Make a file on desktop.

    // robsserver.js
    var http = require('http');
    http.createServer(function (req, res) {
       res.writeHead(200, {'Content-Type': 'text/html'});
       res.end('Hello World!');
    }).listen(1983);
  2. Run it

    C:Users
    obertDesktop> node robsserver.js
  3. Go to URL: http://localhost:1983

Reference

https://www.w3schools.com/nodejs/default.asp