--> 작은 서버를 만드는것 --> api 소통할때 제일 많이 쓰이는 파일타입이다.
1)
npm install -g json-server
2) 확장명이 .json인 파일을 만든다 --> 반드시 Root에 만들어야한다.
json-server --watch db.json --port 3004
혹시 안되면
npx json-server --watch db.json --port 3004
3) 설치됬으면 새창을 연다.
http://localhost:3004/products
그럼 json 파일이 보여야한다.
요로코롬