Create a bare bones server using nodejs core modules and not expressjs.
- http
- url
Create a server from http
const { Server } = require("http");
const app = new Server((req, res) => {
res.writeHead(404);
res.write("Cannot find "+req.url);
res.end();
});
Use some mechanism to handle requests based on the req.url inside the server handler.