A common task for front-end developers is to simulate a backend REST service to deliver some data in JSON format to the front-end application and make sure everything is working as expected.
Of course, you can set up a full backend server, e.g. by using Node.js, Express, and MongoDB. However, this takes some time, and a much simpler approach can help speed up front-end development time.
JSON Server is a simple project that helps you to set up a REST API with CRUD operations very fast
Create A REST API With JSON Server:
1.Installing JSON Server
$ npm install -g json-server
2.Create JSON File
db.json
3.Running The Server
$ json-server --watch db.json - - port 5000