Create a Server that hosts just HTTP Sites

Photo by Ashwini Chaudhary on Unsplash

1. Create a folder.

2. Create a JS file.

3. Generate package.json

In JS file

There are mainly three methods to be used in JS file.

http

Loading `http` object with `require` method.

const http = require(‘http’);