2025-02-25 13:00:10 -05:00
|
|
|
import express from "express";
|
2025-02-25 16:02:31 -05:00
|
|
|
import { doInit } from "./init.js";
|
2025-02-25 13:00:10 -05:00
|
|
|
|
|
|
|
const app = express()
|
|
|
|
const port = 3000;
|
|
|
|
|
|
|
|
app.use(express.static('public'));
|
|
|
|
app.set('view engine', 'ejs');
|
2025-02-25 16:02:31 -05:00
|
|
|
app.enable('view cache');
|
2025-02-25 13:00:10 -05:00
|
|
|
|
|
|
|
app.listen(port, () => {
|
|
|
|
console.log(`Example app listening on port ${port}`)
|
|
|
|
})
|
|
|
|
|
2025-02-25 16:02:31 -05:00
|
|
|
doInit(app);
|