Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Use Express.js with Bun
bun add express bun add -d @types/express
import express from "express"; const app = express(); const port = 3000; app.get("/", (req, res) => { res.send("Hello from Express + Bun!"); }); app.listen(port, () => { console.log(`Server running at http://localhost:${port}`); });
bun run server.ts
import express from "express"; const app = express(); app.use(express.json()); app.post("/api/data", (req, res) => { res.json({ received: req.body }); }); app.listen(3000);
Bun.serve()