Skip to content

hrahal/dl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dl

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 reviews per airport

GET localhost:3000/api/:airport/reviews

Optional param or_min

example:

GET localhost:3000/api/zurich-airport/reviews?or_min=5

get stats per airport

GET localhost:3000/api/:airport/stats/

example

GET localhost:3000/api/zurich-airport/stats/

get all stats

GET localhost:3000/api/all/stats/

this project was tested using mongo > 3.0.0 & node > 5.0.0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published