[Not actively maintaind] A www server for a digger web application
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
assets
src
src2
test
.gitignore
.npmignore
Makefile
README.md
package.json

README.md

digger-serve

An app server for digger websites.

var port = process.env['DIGGER_APP_PORT'] || 8791;
var DiggerServe = require('digger-serve');

var server = new DiggerServe();

var website = server.website({
    document_root:__dirname,
    domains:'*',
    session:true,
    parser:true,
    debug:true,
    cors:true
})

// website is an express app
website.get('/ping/:name', function(req, res){
  res.json({
    pong:20
  })
})

// server is a wrapper for a http.createServer
server.listen(port, function(){
  console.log('test server listening');
  done();
})