mirror of
https://github.com/appium/appium.git
synced 2026-04-24 20:38:43 -05:00
More boiler plate
This commit is contained in:
+10
-6
@@ -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
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user