- Install axios package as dependency - you can find instruction on website or in presentation.
- Install prettier as dev dependency package - presentation.
- Create new script in package.json to run prettier for every js file in project. So this command
npm run prettier
has to work and it will fix all your files in project. Custom scripts - the command for prettier to format your files isprettier --write .
So when you runnpm run prettier
it should executeprettier --write .
- Do all tasks in
task-axios.js
- Do all tasks in
task-read.js
- Task
task-bonus.js
is a bonus task for extra point.
You can try run node test-dep.js
if you installed axios correctly or not. Also if you run npm test
, it should validate, if you installed all dependencies. Try it! There is also example in utils/axiosUtils.js