diff options
author | Julien Dessaux | 2022-10-22 18:38:28 +0200 |
---|---|---|
committer | Julien Dessaux | 2022-10-22 18:38:28 +0200 |
commit | 9c464327fa0c026d638efa82af03710b5b6973b1 (patch) | |
tree | d21505325288930ffbd29d24d2b1f33c4cc6759b /main.js | |
parent | Compute words and points from placed letters (diff) | |
download | jeux-de-mots-9c464327fa0c026d638efa82af03710b5b6973b1.tar.gz jeux-de-mots-9c464327fa0c026d638efa82af03710b5b6973b1.tar.bz2 jeux-de-mots-9c464327fa0c026d638efa82af03710b5b6973b1.zip |
Began writing an express backend
Diffstat (limited to '')
-rw-r--r-- | main.js | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -0,0 +1,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}!`)); |