basic express setup

This commit is contained in:
Badtz 2025-06-30 12:31:14 -07:00
commit 549e26f70f
6 changed files with 299 additions and 0 deletions

16
src/index.ts Normal file
View file

@ -0,0 +1,16 @@
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}`);
});