Files
my-node-app/app.js
T
John 8435b42778
Node.js CI/CD / build (push) Successful in 20s
Configure automatic deployment path2
2026-09-22 20:55:48 +05:30

29 lines
610 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-CD1 </h1>
<h1>Step CI-CD 2</h1>
<p>Welcome, This application is running on Windows 10.</p>
</body>
</html>
`);
});
server.listen(PORT, () => {
console.log(`Server running at http://localhost:${PORT}`);
});