blob: c916bedb2067f4a3a19f836767db9dec89669f41 (
plain)
1
2
3
4
5
6
7
8
9
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}`)
|