Practical week 12: Node.js and Vue.js

3. In both projects run:

> npm install

4. To run Front-end App

> npm run serve

5. To run Back-end App

> npm start

6. In Front-end project install axios

> npm install axios

Tasks

  • Retrieve all tasks from back-end endpoint using axios and store it in the state
    • GET localhost:3000/users/1/tasks
  • Create new endpoint on back-end to insert new task
    • POST localhost:3000/users/1/tasks