Fake Api With Json Server in 15 Minutes

For creating a mock api we will use the json-server package that will help us to create a mock api without any hassle. Which can be consumed by any framework of javascript like React, Vue, Angular etc. Even without them. To install this in your machine globally run this command. npm install -g json-server Create a folder where you want to create a mock api in my case I will create a folder with api name....

June 5, 2022 · 2 min · Mohammad Shahzaib