//serve-form.js const http = require('http'), httpStatusCodes = require('http-status-codes'), fsModule = require('./file-server.js'), path = 'views/rectangle.html', htmlType = {'Content-Type': 'text/html'}, port = 3000; const callbackFct = (req, res) => { res.writeHead(httpStatusCodes.OK, htmlType); const fileServer = new fsModule.FileServer(); fileServer.serveTo(path, res); } const webServer = http.createServer(callbackFct); webServer.listen(port);