Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
missinglink committed Sep 5, 2014
0 parents commit b9db328
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
node_modules
13 changes: 13 additions & 0 deletions controller/index.js
@@ -0,0 +1,13 @@

var pkg = require('../package');

function controller( req, res ){
res.json({
name: pkg.name,
version: {
number: pkg.version
}
});
}

module.exports = controller;
5 changes: 5 additions & 0 deletions express.js
@@ -0,0 +1,5 @@

var express = require('express');
var app = express();

module.exports = app;
7 changes: 7 additions & 0 deletions index.js
@@ -0,0 +1,7 @@

var app = require('./express');

// api root
app.get( '/', require('./controller/index' ) );

app.listen( process.env.PORT || 3100 );
33 changes: 33 additions & 0 deletions package.json
@@ -0,0 +1,33 @@
{
"name": "pelias-api",
"author": "mapzen",
"version": "0.0.0",
"description": "Pelias API",
"homepage": "https://github.com/pelias/api",
"license": "MIT",
"main": "index.js",
"scripts": {
"start": "node index.js",
"test": "echo \"Error: no test specified\" && exit 0"
},
"repository": {
"type": "git",
"url": "git://github.com/pelias/api.git"
},
"keywords": [
"pelias",
"elasticsearch",
"webview"
],
"bugs": {
"url": "https://github.com/pelias/api/issues"
},
"engines": {
"node": ">=0.10.26",
"npm": ">=1.4.3",
"elasticsearch": ">=1.2.1"
},
"dependencies": {
"express": "^4.8.8"
}
}

0 comments on commit b9db328

Please sign in to comment.