Create a Server that hosts just HTTP Sites

Shiori Soma
2 min readAug 9, 2021
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’);

--

--

Shiori Soma

I’m a front-end web developer based in Vancouver, studying CICCC, an web and mobile app development course. https://shiory602.github.io/portfolio/