updated
هذا الالتزام موجود في:
12
test-projects/node-test/index.js
Normal file
12
test-projects/node-test/index.js
Normal file
@@ -0,0 +1,12 @@
|
||||
const http = require("http");
|
||||
|
||||
const PORT = process.env.PORT || 8080;
|
||||
|
||||
const server = http.createServer((req, res) => {
|
||||
res.writeHead(200, { "Content-Type": "text/plain" });
|
||||
res.end("Hello from Node.js!");
|
||||
});
|
||||
|
||||
server.listen(PORT, "0.0.0.0", () => {
|
||||
console.log(`Server listening on port ${PORT}`);
|
||||
});
|
||||
المرجع في مشكلة جديدة
حظر مستخدم