frontend/src/index.ts

17 lines
353 B
TypeScript
Raw Normal View History

2025-06-30 12:31:14 -07:00
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}`);
});