node-hello / index.js
User-2468's picture
Update index.js
4e4a4a7 verified
raw
history blame contribute delete
341 Bytes
const http = require("http");
const PORT = process.env.PORT || 7860;
const server = http.createServer((req, res) => {
res.writeHead(200, { "Content-Type": "text/plain" });
res.end("Hello from Hugging Face Space with Node.js + Docker!\n");
});
server.listen(PORT, () => {
console.log(`Server running at http://0.0.0.0:${PORT}/`);
});