Advice: add mocker api config like `mocker.config.js`
See original GitHub issueHi, I used the independent mode like mocker mock/index.js
and found that the host and port cannot change in this mode. So I feel it’s not easy to use as a part of a project. Try to get the HOST
and PORT
from a config file will be better than using the process.env
.
Is this useful or need that?
Thanks.
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (14 by maintainers)
Top Results From Across the Web
mocker-api - npm
Built in support for hot Mocker file replacement. Quickly and easily configure the API via JSON. Mock API proxying made simple. Can ...
Read more >Setting up a Local Mock API for your Front-end (React) Project
I would import the mock data into components to help me build them out ... connect-api-mocker is a connect.js middleware that fakes REST...
Read more >webpack-api-mock-server - npm package - Snyk
webpack-api-mocker is a webpack-dev-server middleware that creates mocks for REST APIs. It will be helpful when you try to test your application ...
Read more >Mocking REST endpoints in web apps, the easy way - Medium
That configuration means, api mocker will try to respond requests that has url starts with /api by some files in the mocks/api folder....
Read more >Mock Target API | Apigee Edge
In Edge, you could specify one of these endpoints, passing an API key for security, with HTTPTargetConnection element code such as the ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@vanpipy thx! Released
mocker-api@2.7.0
The issue resolved, so close it.