Misc : NodeJS
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
-
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);
-
Run it
C:Users obertDesktop> node robsserver.js
- Go to URL: http://localhost:1983