basic stuff

This commit is contained in:
biglyderv 2024-10-16 16:24:07 -04:00
parent 8c4928109a
commit 2ca63f06b4
11 changed files with 1397 additions and 0 deletions

16
index.js Normal file
View file

@ -0,0 +1,16 @@
import express from "express";
const app = express()
const port = process.env.port || 3000;
app.use('/static', express.static('./static'),)
app.set('view engine', 'ejs');
app.set('views', './views');
app.get('/', (req, res) => {
res.render('index');
})
app.listen(port, () => {
console.log(`App listening on port ${port}`)
})