mirror of
https://github.com/debug-js/debug.git
synced 2025-12-08 20:59:48 +00:00
20 lines
331 B
JavaScript
20 lines
331 B
JavaScript
|
|
var debug = require('../../')('http')
|
|
, http = require('http')
|
|
, name = 'My App';
|
|
|
|
// fake app
|
|
|
|
debug('booting %o', name);
|
|
|
|
http.createServer(function(req, res){
|
|
debug(req.method + ' ' + req.url);
|
|
res.end('hello\n');
|
|
}).listen(3000, function(){
|
|
debug('listening');
|
|
});
|
|
|
|
// fake worker of some kind
|
|
|
|
require('./worker');
|