site/server.js
2025-12-11 12:03:06 +05:30

14 lines
344 B
JavaScript

const express = require('express');
const path = require('path');
const app = express();
const port = 5000;
app.use(express.static(path.join(__dirname, '.')));
app.get('/', (req, res) => {
res.sendFile(path.join(__dirname, 'index.html'));
});
app.listen(port, () => {
console.log(`Server listening at http://localhost:${port}`);
});