1. 사전설치 : nodejs 2. json-serve설치 npm install -g json-server 3. db.json 이란 파일을 생성하고 아래 추가. { "posts": [ { "id": 1, "title": "Hello World" } ], "comments": [ { "id": 1, "body": "some comment", "postId": 1 } ] } 4. json-server 실행 json-server --watch db.json