-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a plan to support server side mocking? #238
Comments
Hey Jack, SSR is a use case we haven't had time to tackle yet but we do
want to support it.
Might take a while though as I just went on vacation but I'll add this to
my to-do list.
Thanks!
…On Apr 4, 2017 13:26, "Jack Cross" ***@***.***> wrote:
I came across Mimic while looking for a mocking tool for local development
and it looks awesome!
My only issue is my application uses SSR so I would also need to mock the
requests made from the server. I see that Mimic is described as "client
side mocking" but I was wondering if there is any way to do this currently
or if there are plans to support SSR in the future?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#238>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABlqIlrf_ugZTSkmNWTHReCUZ7QTtbC-ks5rsotRgaJpZM4MzPzm>
.
|
Are you looking for contributors? This is a use case I would love to help out with. |
Of course I am, will love help to build this feature.
Will need to think about how we can support node environments as we don't
have local storage available to store the mocks.
It might be possible using remote mode and having the client open in the
browser but I've never tested it on a node environment
…On Apr 5, 2017 09:39, "Jack Cross" ***@***.***> wrote:
Are you looking for contributors? This is a use case I would love to help
out with.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#238 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABlqIp-z2iikQwiE1NQniTtqBsh7lgn9ks5rs6e3gaJpZM4MzPzm>
.
|
Cool! I think remote mode sounds like a good place to start. I'm planning on digging into this more over the weekend so should have a better understanding then. |
Just an update on this, the latest releases of mimic expose a custom interceptor system where you could implement your own interceptor, so this is now possible to implement. |
@morsdyce No you can't really do that.. bootstrapUI & other functions will throw errors.. unless there's a way to register a custom interceptor before load that I'm missing? |
hey @danrevah In addition to that you do have the ability to create a custom interceptor to capture request in any manner you'd want. This isn't documented very well currently but you can see how to register it here: and an example of what an interceptor usually contains here: As long as you keep the same interface it should work. |
I came across Mimic while looking for a mocking tool for local development and it looks awesome!
My only issue is my application uses SSR so I would also need to mock the requests made from the server. I see that Mimic is described as "client side mocking" but I was wondering if there is any way to do this currently or if there are plans to support SSR in the future?
The text was updated successfully, but these errors were encountered: