서버를 개발하지 않고 테스트 할 수 있음.
https://jsonplaceholder.typicode.com/
JSONPlaceholder - Free Fake REST API
{JSON} Placeholder Free fake API for testing and prototyping. Powered by JSON Server + LowDB. Tested with XV. As of Oct 2021, serving ~1.7 billion requests each month.
jsonplaceholder.typicode.com
하단의 Resources로 내려가서 클릭해보면...데이터를 볼 수 있다.
통신을 위해서 Http Client는 Axios 를 사용
https://github.com/axios/axios
GitHub - axios/axios: Promise based HTTP client for the browser and node.js
Promise based HTTP client for the browser and node.js - GitHub - axios/axios: Promise based HTTP client for the browser and node.js
github.com
설치
- npm install axios (npm i axios) 또는 아래
- yarn add axios
설치가 되면 package.json파일의 dependencies에 추가됨
======================================================
'IT > VueJS' 카테고리의 다른 글
자식 컴포넌트로 데이터 보내기 (0) | 2022.08.25 |
---|---|
Component 로 만들어 사용하기 (0) | 2022.08.25 |
Computed 메서드 예제 (0) | 2022.08.24 |
첫번째 프로젝트 (0) | 2022.08.24 |
데이터 바인딩, Interpolation (0) | 2022.08.23 |
댓글