# create directory for the node project # init a new npm project npm init # install express server npm i express
Open editor and add some basic code
var app = require('express')(); var http = require('http').Server(app); app.get('/', function(req, res) { res.send(` <h1>Hello World</h1> `); }); http.listen(3000, function() { console.log("listening on 3000"); });
run the app
node appname.js
open a web browser and open the page
http://localhost:3000
I am nuts about books. I read on all kinds of topics. I attempt to review each book I read for the sake of my own enrichment as well as conversation starters with others.
You never know what you will find in an attic! Usually there is a hodgepodge of things buried under dust.
Most of what is included here are notes to myself. The majority of folks will not find interest in these posts.