You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1//You will build this project using pure node to gain a thorough understanding of node. the are obviously easier ways of building this using external modules, but that is the purpose of thi project as you would miss out on many code concepts.
//require node modules
const http = require('http');
//file imports
const respond = require('./lib/respond.js');
//connection settings
const port = process.env.port || 3000;
//create server
const server = http.createServer(respond);
//listern to client requests om the specific port, the port should be available