mirror of
https://github.com/Raghu-Ch/nodeRestAPI.git
synced 2026-02-10 20:53:02 -05:00
initial commit
This commit is contained in:
13
node_modules/gulp-nodemon/test/server.js
generated
vendored
Normal file
13
node_modules/gulp-nodemon/test/server.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
const http = require('http')
|
||||
|
||||
const port = 8000
|
||||
const hostname = '0.0.0.0'
|
||||
|
||||
http.createServer((req, res) => res.end(`
|
||||
Hello World, from the future!
|
||||
It's ${
|
||||
new Date().getFullYear() + Math.ceil(Math.random() * 100)
|
||||
} here, how is it going back there in ${new Date().getFullYear()}? :)
|
||||
|
||||
`))
|
||||
.listen(port, hostname, () => console.info(`listening on http://${hostname}:${port}`))
|
||||
Reference in New Issue
Block a user