Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 822 Bytes

readme.md

File metadata and controls

25 lines (18 loc) · 822 Bytes

Node Lessons

Lesson 4: Use Axios as HTTP client

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 of request-promise

Allowed Npm Packages

  • axios: http client used to perform http requests
  • express: web server
  • moment: date manager
  • winston: 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