/** * Adapted from example in multiple sites on web */ const path = require('path') const express = require('express') const app = express() const port = 30025 // static pages are in a directory named public where node was started app.use("/", express.static(path.join(__dirname))) app.use("/hello.html", function (request, response) { response.write(""); response.write("

Hello World

"); response.end(""); }); app.listen(port, function (error) { if (error) throw error console.log("Server created Successfully") });