summaryrefslogtreecommitdiff
path: root/main.js
blob: 17e47c264b843533c96d861f6352072b7cdfff19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import express from "express";

export const app = express();

app.set("views", "./views");
app.set("view engine", "ejs");

app.get("/", (req, res) => {
	return res.render("index", {});
});

app.use(express.static("static"));

const port = process.env.PORT || 3000;
app.listen(port, () => console.log(`listening on port ${port}!`));