diff options
Diffstat (limited to 'practice/index.js')
-rw-r--r-- | practice/index.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/practice/index.js b/practice/index.js new file mode 100644 index 0000000..c916bed --- /dev/null +++ b/practice/index.js @@ -0,0 +1,10 @@ +const http = require('http') + +const app = http.createServer((request, response) => { + response.writeHead(200, { 'Content-Type': 'text/plain' }) + response.end('Habari Tanzania') +}) + +const PORT = 3001 +app.listen(PORT) +console.log(`Server running on port ${PORT}`) |