Need full option list?
Jump to CLI Reference.
npm install -g @bvbmz/local-proxyOr run instantly with npx:
npx @bvbmz/local-proxy --target https://api.example.com # 1) scaffold config local-proxy --init # 2) run proxy local-proxy --target https://api.example.com5050/api./scenarios.jsonPoint your frontend to:
http://localhost:5050/api@bvbmz/local-proxy.local-proxy --init to generate scenarios.json.local-proxy --target <your-api-url>.active_scenario values in scenarios.json while developing.You can configure runtime with env vars:
TARGETPORTAPI_PREFIXCLI flags take precedence over env vars.
Need full option list?
Jump to CLI Reference.
Want realistic mocks?
Check Scenarios and start using fixture files.