booger_quest/app.js
Jason McPheron ca49b0546d 🤖 Plandex → apply pending changes
✏️  Initialize Node.js project with Express server and basic HTML page
2024-04-21 09:34:43 -07:00

13 lines
289 B
JavaScript

const express = require('express');
const app = express();
const PORT = 3000;
app.use(express.static('public'));
app.get('/', (req, res) => {
res.sendFile(__dirname + '/public/index.html');
});
app.listen(PORT, () => {
console.log(`Server running on http://localhost:${PORT}`);
});