Created
August 27, 2019 15:41
-
-
Save artemis15/28102c4df2a6114b72bf5ad9aba9309c to your computer and use it in GitHub Desktop.
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((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