Last active
August 5, 2025 03:58
-
-
Save supersonictw/467ff2594b263c2ac2aa25df80641dd2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
"use strict"; | |
const http = require("node:http"); | |
const port = process.env.SERVER_PORT || "8000"; | |
http.createServer((req, rsp) => { | |
rsp.writeHead(200,{ | |
"Content-Type": "text/plain" | |
}); | |
rsp.end("Hello! Server"); | |
}).listen(port); | |
console.info(`Server is running at http://localhost:${port}`); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment