Initial commit apps directory with .gitignore
This commit is contained in:
11
testnode/server.js
Normal file
11
testnode/server.js
Normal file
@@ -0,0 +1,11 @@
|
||||
const http = require("http");
|
||||
const PORT = process.env.PORT || 3000;
|
||||
|
||||
const server = http.createServer((req, res) => {
|
||||
res.writeHead(200, { "Content-Type": "text/plain" });
|
||||
res.end("Node.js test app from HOME folder is running!\n");
|
||||
});
|
||||
|
||||
server.listen(PORT, () => {
|
||||
console.log(`Server running on port ${PORT}`);
|
||||
});
|
||||
Reference in New Issue
Block a user