sudo npm install
import data to mongo:
this service supports updating the data source option with accepting or rejecting a record accordingly
cd import
node csv_to_mongo.js data_source/airport.csv
start service:
npm start
API's:
GET localhost:3000/api/:airport/reviews
Optional param or_min
example:
GET localhost:3000/api/zurich-airport/reviews?or_min=5
GET localhost:3000/api/:airport/stats/
example
GET localhost:3000/api/zurich-airport/stats/
GET localhost:3000/api/all/stats/
this project was tested using mongo > 3.0.0 & node > 5.0.0