Setup Node Server in Local Dev (MacOS)

April 2, 2021
# 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) {
 <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

Book Reviews

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.

My Book Reviews
The Attic

You never know what you will find in an attic! Usually there is a hodgepodge of things buried under dust.

Explore the Attic

Most of what is included here are notes to myself. The majority of folks will not find interest in these posts.

Technology Posts