- Create a repo on GitHub
- Create a
db.json
file - Visit https://my-json-server.typicode.com/github-username/repo to access your server
https://my-json-server.typicode.com/pkErbynn/fakeRESTendpoint
- Install JSON server
npm install -g json-server
- Start JSON Server
json-server --watch db.json
https://my-json-server.typicode.com/ https://www.npmjs.com/package/json-server