first commit

This commit is contained in:
John
2026-09-22 16:32:32 +05:30
commit 8a47d5dc29
2 changed files with 38 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
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>
<p>This application is running on Windows 10.</p>
</body>
</html>
`);
});
server.listen(PORT, () => {
console.log(`Server running at http://localhost:${PORT}`);
});