Skip to content

Instantly share code, notes, and snippets.

@ORESoftware
Last active December 23, 2022 22:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ORESoftware/0a8aaf758d8270b44caf66f0b7ff215a to your computer and use it in GitHub Desktop.
Save ORESoftware/0a8aaf758d8270b44caf66f0b7ff215a to your computer and use it in GitHub Desktop.
basic node server
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