-
download https://s3.amazonaws.com/nyc-tlc/trip+data/yellow_tripdata_2019-01.csv and save it at docker_db/data/datasource.csv
-
Use DOCKER-COMPOSE to setup the PG container and upload the dataset.
Yarn
node app.js
yarn jest
http://localhost:3000/api/v1/db/payment_types/distinct
http://localhost:3000/api/v1/db/vendors/distinct
http://localhost:3000/api/v1/db/all/:page*
*page= optional page number if not provided is 1. because this is a huge dataset we paginated the results with a step of 100