import express from "express"; import path from "path"; const app = express(); const port = process.env.PORT || 3000; app.use("/static", express.static(path.join(__dirname, "public"))); // landing page app.get("/", (req, res) => { res.send("landing page"); }); // start server app.listen(port, () => { console.log(`Running on port ${port}`); });