Simple node express web server
Created on: Thu Jul 06 2017
So to create a simple node web server with express is very easy. Just require express and tell it to listen on a port.

const express = require('express'); var app = express(); app.get('/', (req, res) => { res.send('Hello World!'); }); app.listen(3000, ()=>{ console.log('Server started on http://localhost:3000'); });

That's it. Go to http://localhost:3000 and view your new node/express web server.
 #node |  #express |