
Description
The backend is not ready, so the front end waits or fills up with fake data that must be removed later. mocker-api lets you define mock endpoints in one JS file, serve them immediately, and hot-reload whenever the mock file changes.
Unmocked requests proxy to a real server, and it runs standalone or inside webpack-dev-server.
Hot reload:Changes to mock files apply without restarting.
JSON/JS config:Describe routes and responses with plain objects.
Proxying:Forward unmocked requests to the real backend.
Standalone:Run mocker ./api.js, or use it with webpack.
Unmocked requests proxy to a real server, and it runs standalone or inside webpack-dev-server.
Features
Hot reload:Changes to mock files apply without restarting.
JSON/JS config:Describe routes and responses with plain objects.
Proxying:Forward unmocked requests to the real backend.
Standalone:Run mocker ./api.js, or use it with webpack.
