hello-node: minimal HTTP server for the host-app POC

This commit is contained in:
POC
2026-07-03 00:58:16 +10:00
commit b8e8db7bf9
2 changed files with 11 additions and 0 deletions

5
package.json Normal file
View File

@@ -0,0 +1,5 @@
{
"name": "hello-node",
"version": "1.0.0",
"scripts": { "start": "node server.js" }
}

6
server.js Normal file
View File

@@ -0,0 +1,6 @@
const http = require("http");
const port = process.env.PORT || 3000;
http.createServer((req, res) => {
res.writeHead(200, { "Content-Type": "text/plain" });
res.end(`hello from the yourai app platform\napp: hello-node\ngreeting: ${process.env.GREETING || "(unset)"}\n`);
}).listen(port, () => console.log(`listening on ${port}`));