const express = require("express"); const app = express(); const path = require("path"); app.get("/", (req, res) =>{ res.sendFile(path.join(__dirname + "/index.html")) }); const PORT = 4000; app.listen(PORT, () =>{ console.log(`Server is working on ${PORT}`) });
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter