Skip to content

[Not actively maintaind] A www server for a digger web application

Notifications You must be signed in to change notification settings

olddigger/digger-serve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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();
})  

About

[Not actively maintaind] A www server for a digger web application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published