Files
my-node-app/app.js
T
John c5c6f45d58
Node.js CI / build (push) Successful in 19s
Test Node CI-CD 5 runner
2026-09-22 19:48:27 +05:30

28 lines
583 B
JavaScript

const http = require("http");
const PORT = 3001;
const server = http.createServer((req, res) => {
res.writeHead(200, {
"Content-Type": "text/html"
});
res.end(`
<!DOCTYPE html>
<html>
<head>
<title>My Node App</title>
</head>
<body>
<h1>Hello from Node.js!</h1>
<h1>Step CI-CD</h1>
<p>Welcome, This application is running on Windows 10.</p>
</body>
</html>
`);
});
server.listen(PORT, () => {
console.log(`Server running at http://localhost:${PORT}`);
});