Description Axios is probably the most used HTTP client both Back and Frontend. Its simple API makes creating HTTP requests a joke, yet allowing a deep configuration customization making itself ideal for all use cases.
Replace request-promise
with Axios in the whole application.
Goals
- Use
axios
as http client instead ofrequest-promise
Allowed Npm Packages
axios
: http client used to perform http requestsexpress
: web servermoment
: date managerwinston
: logger
Requirements
- The results must be saved in
userdata/data.json
- The logs must be saved under
storage/logs/nodeJobs.log
Suggestions
- Rewrite the function which takes the query parameters from the incoming request