question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Advice: add mocker api config like `mocker.config.js`

See original GitHub issue

Hi, 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:closed
  • Created 3 years ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
jaywcjlovecommented, Oct 29, 2020

@vanpipy thx! Released mocker-api@2.7.0

0reactions
vanpipycommented, Oct 30, 2020

The issue resolved, so close it.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found