Skip to content

Commit

Permalink
Adding core and middlewares folders for astronomy and validation modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Chandan Tiwari committed May 9, 2015
1 parent 1f2fd49 commit 11b21aa
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 2 deletions.
26 changes: 26 additions & 0 deletions core/astronomy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/**
* Created by chandan on 09/05/15.
*/



var api = {

getJulianDay : function(data){

},

getSolarSystemBodies : function(data, callback){

},

getLunarPosition : function(data, callback){

},

getSolarPosition : function(data, callback){

}
};

module.exports = api;
11 changes: 11 additions & 0 deletions core/calcAstronomy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/**
* Created by chandan on 09/05/15.
*/

var async = require('node-swisseph');
var swisseph = require('node-swisseph');

var flag = swisseph.FLG_SPEED;

// set ephemeris data path
swisseph.set_ephe_path (__dirname + '/../ephe');
3 changes: 3 additions & 0 deletions middlewares/validation.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/**
* Created by chandan on 09/05/15.
*/
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
"start": "node ./bin/www"
},
"dependencies": {
"async": "^0.9.0",
"body-parser": "~1.12.0",
"debug": "~2.1.1",
"express": "~4.12.2",
"morgan": "~1.5.1"
"morgan": "~1.5.1",
"node-swisseph": "^0.1.3"
}
}
}

0 comments on commit 11b21aa

Please sign in to comment.