YIPL-INTERN-PETROLEUM-REPORT is the is a RESTful API application that allows users to: 1.List the total sale of each petroleum. 2.List the top 3 countries that have the highest and lowest total sales till date. 3.List average sale of each petroleum product in range of 4 years(2007-2010 & 2011-2014) of interval. Note: Do not count zero sale during average calulation
Before running the application locally, ensure you have the following dependencies installed:
- Node.js
- npm
- Any SQL database
https://bitbucket.org/orion002/yipl-intern-petroleum-report/src/master/
cd yipl-intern-petroleum-report
npm install
npx sequelize db:migrate
npx sequelize db:seed:all
Note: These migration & seeders are normalized & model definition from response of provided task api end point: https://raw.githubusercontent.com/younginnovations/internsh
npm run build:watch
npm run start:watch
localhost:port/swagger