Last active
December 23, 2022 22:23
-
-
Save ORESoftware/0a8aaf758d8270b44caf66f0b7ff215a to your computer and use it in GitHub Desktop.
basic node server
This file contains 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
const http = require('http'); | |
const server = http.createServer((request, response) => { | |
response.end(` | |
<html> hello world this is julian, here is an image: <br> | |
<img src="https://static.wikia.nocookie.net/history/images/6/6a/Classical_greece..jpg"></img> | |
</html> | |
`); | |
}); | |
server.listen(4444); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment