minezo-www/index.js
2024-10-16 16:24:07 -04:00

16 lines
338 B
JavaScript

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}`)
})