Skip to content

Instantly share code, notes, and snippets.

@artemis15
Created August 27, 2019 15:41
Show Gist options
  • Save artemis15/28102c4df2a6114b72bf5ad9aba9309c to your computer and use it in GitHub Desktop.
Save artemis15/28102c4df2a6114b72bf5ad9aba9309c to your computer and use it in GitHub Desktop.
const http = require('http');
const server = http.createServer((req, res) => {
res.writeHead(200, {'content-type':'text/html'});
res.end('<p><strong>Hurray!</strong> you have caught your 1st pokemon.</p>');
});
server.listen(3020, ()=>{
console.log('the server is running on http://localhost:3020');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment