Create MOCK REST API With JSON Server
Create MOCK REST API With JSON Server
js
1. Download the latest version of Node.js Installer here.
2. Run the installer.
3. Follow the installer steps, and click the next button. Finally, click the Install button to run the
installer. When it finishes, click Finish.
4. Restart your system/machine.
5. At last, verify whether you have properly installed Node.js in your window, run the following
command in “Command Prompt”:
type node -v command, the system should display the Node.js version installed on your system.
type npm -v command, the system should display the NPM version installed on your system.
7. Run command npm run start -- for starting the server, and it will load data from mockerDB.json
When it finished, you should have the Mock REST API running at http://localhost:3000