website/src/index.ts

17 lines
316 B
TypeScript
Raw Normal View History

2024-06-09 07:22:05 +00:00
import express from "express";
import nunjucks from "nunjucks";
2024-07-05 13:22:31 +00:00
import app from "./app.js";
2024-06-09 07:22:05 +00:00
const site = express();
2024-07-03 07:47:47 +00:00
nunjucks.configure("templates", {
2024-06-09 07:22:05 +00:00
autoescape: true,
express: site,
});
site.use(express.static("."));
site.get("/", app.index);
site.listen(8080, () => console.log("app listening on 8080"));