AnnaGeld / travel-with-van

0 stars 0 forks source link

Why the mock? #3

Open tyrsson opened 1 year ago

tyrsson commented 1 year ago

Why are you still mocking data Anna?

You have all of the tools you need to move past providing static mocked data to your applications. Please contact me on slack and I will show you how to provide live data instead of mocking it :)

https://github.com/AnnaGeld/travel-with-van/blob/8f7aa1e73b8bfadcce185d84ea942c85f8ece8dd/src/server.js#L2

AnnaGeld commented 1 year ago

Is mocking waayy different than to provide a live data?

tyrsson commented 1 year ago

In respect to the front end application, no not really. But you learn nothing from it really. Does the mock server your using support sending different response codes? What happens to your React app when it gets malformed json as a response? What happens to it if there is a 404 for one of the images?

AnnaGeld commented 1 year ago

When you have time can we do it? with whatever language :)

tyrsson commented 1 year ago

Absolutely.