Spaces:
Running
Running
File size: 384 Bytes
4bb817b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
const express = require('express');
const app = express();
const path = require('path');
// Serve static files from the current directory
app.use(express.static(__dirname));
// Start the server
const PORT = process.env.PORT || 3000;
app.get('/favicon.ico', (req, res) => res.status(204));
app.listen(PORT, () => {
console.log(`Server is running on http://localhost:${PORT}`);
});
|