Practical week 12: Node.js and Vue.js
Practical week 12: Node.js and Vue.js
3. In both projects run:
3. In both projects run:
> npm install
4. To run Front-end App
4. To run Front-end App
> npm run serve
5. To run Back-end App
5. To run Back-end App
> npm start
6. In Front-end project install axios
6. In Front-end project install axios
> npm install axios
Tasks
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