More boiler plate

This commit is contained in:
Adam Christian
2013-01-10 14:02:50 -08:00
parent ffafa83562
commit af51bf6b55
2 changed files with 16 additions and 9 deletions
+10 -6
View File
@@ -5,14 +5,18 @@ var http = require('http')
, colors = require('colors')
, port = 1337;
route.get('/{base}', function(req, res) {
res.writeHead(200);
res.end('hello '+req.params.base);
});
// import the controller
var controller = require('./controller');
// define our routes, https://github.com/gett/router
route.get('/{base}', controller.blah);
// import a package that collected system reqs
// start the JSON wire protocol endpoint
http.createServer(route).listen(port);
// start the appium queue server
var logMessage = "Appium started on localhost:"+port;
console.log(logMessage.cyan);
+6 -3
View File
@@ -5,7 +5,7 @@
"automation",
"javascript"
],
"version": "0",
"version": "0.0.1",
"author": "appium-discuss@googlegroups.com",
"repository": {
"type": "git",
@@ -27,9 +27,12 @@
"dependencies": {
"underscore": "~1.4.3",
"colors": "~0.6.0-1",
"router": "~0.6.2"
},
"devDependencies": {
"mocha": "~1.8.1"
},
"devDependencies": {},
"scripts": {
"test": "make test"
"test": "mocha test/unit"
}
}