how to create db.json code example Example 1: json server json-server --watch db.json Example 2: install json server with yarn npm install -g json-server