minezo-www/index.js

17 lines
337 B
JavaScript
Raw Normal View History

2024-10-16 16:24:07 -04:00
import express from "express";
const app = express()
2024-10-16 16:26:25 -04:00
const port = process.env.PORT|| 3000;
2024-10-16 16:24:07 -04:00
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}`)
})