test_repo/dist/server.js

13 lines
367 B
JavaScript
Raw Permalink Normal View History

2025-05-21 10:14:29 +02:00
import express from 'express';
const app = express();
const PORT = parseInt(process.env.PORT ?? "3000");
const HOST = process.env.HOST ?? '0.0.0.0';
app.get('/', (req, res) => {
console.log(`Request received: ${req.method} ${req.url}`);
res.send('Hello, World!');
});
app.listen(PORT, HOST, () => {
console.log(`Server is running at http://${HOST}:${PORT}`);
});