vsb-js / template-lab-03

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LAB-03

TASKS

  1. Install axios package as dependency - you can find instruction on website or in presentation.
  2. Install prettier as dev dependency package - presentation.
  3. 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 is prettier --write . So when you run npm run prettier it should execute prettier --write .
  4. Do all tasks in task-axios.js
  5. Do all tasks in task-read.js
  6. Task task-bonus.js is a bonus task for extra point.

Example

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

About


Languages

Language:JavaScript 96.1%Language:Shell 3.9%