Created
August 27, 2019 14:10
-
-
Save artemis15/a8ff57266fa590e52c9268a4d275447e 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); | |
res.end('Hurray! you have caught your 1st pokemon'); | |
}); | |
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