diff --git a/README.md b/README.md index 8b3b62744..706054458 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,28 @@ Create a `db.json` (or `db.json5`) file } ``` +
+ +`db.json5` + +```json5 +{ + posts: [ + { id: '1', title: 'a title' }, + { id: '2', title: 'another title' }, + ], + comments: [ + { id: '1', text: 'a comment about post 1', postId: '1' }, + { id: '2', text: 'another comment about post 1', postId: '1' }, + ], + profile: { + name: 'typicode', + }, +} +``` + +
+ Pass it to JSON Server CLI ```shell