Quickly explore how to use json-server
Install the dependencies and devDependencies and start the server.
cd json-server-intro
npm i
Start json-server using static db.json
npm run serve-json-static
Start json-server using dynamic data generated with Faker
npm run serve-json-generated
- Json-server npm page: https://www.npmjs.com/package/json-server
- Thanks to this YouTube playlist minicourse on json-server: https://www.youtube.com/watch?v=_1kNqAybxW0&list=PLC3y8-rFHvwhc9YZIdqNL5sWeTCGxF4ya&ab_channel=Codevolution and the accompanying GitHub repository https://github.com/gopinav/json-server-tutorials/
- Faker docs: https://fakerjs.dev/guide/
- User pictures from: https://randomuser.me/photos