Skip to content

Instantly share code, notes, and snippets.

@LoicMahieu
Last active August 29, 2015 13:57
Show Gist options
  • Save LoicMahieu/9548976 to your computer and use it in GitHub Desktop.
Save LoicMahieu/9548976 to your computer and use it in GitHub Desktop.
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}).listen(1337, '127.0.0.1');
console.log('Server running at http://127.0.0.1:1337/');
{
"name": "test-nodemon",
"version": "0.0.0",
"description": "",
"main": "index.js",
"dependencies": {
"nodemon": "~1.0.15"
},
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "BSD-2-Clause"
}
require('nodemon')({
restartable: false,
stdin: false,
script: 'index.js'
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment