import express from "express"; const app = express(); // Hello World GET endpoint app.get("/", (_, res) => { res.send("Hello World!"); }); // Set the default port to 3000, or use the PORT environment variable const port = process.env.PORT || 3000; app.listen(port, () => console.log(`Express server listening on port ${port}`));