mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
15 lines
328 B
JavaScript
15 lines
328 B
JavaScript
// See the README.md for more information
|
|
import express from "express";
|
|
|
|
const app = express();
|
|
const port = process.env.PORT || 3000;
|
|
let i = 0;
|
|
|
|
app.get("/", (req, res) => {
|
|
res.send("Hello World! (request number: " + i++ + ")");
|
|
});
|
|
|
|
app.listen(port, () => {
|
|
console.log(`Express server listening on port ${port}`);
|
|
});
|