secajs/index.js

25 lines
647 B
JavaScript
Raw Normal View History

2025-02-05 12:47:30 +01:00
const express = require('express');
const app = express();
const port = 3000;
app.get('/', (req, res) => {
2025-02-06 19:11:41 +01:00
res.send(`
<!DOCTYPE html>
<html lang="en">
<head>
<title>Hello World</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<h1>Hello World! We're live</h1>
<p>Now this is some production grade stuff, baby!</p>
</body>
</html>
`);
2025-02-05 12:47:30 +01:00
});
app.listen(port, () => {
console.log(`Server started on port ${port}`);
});