3 ms·
For a side project? I think that makes a difference here. What I’ve been doing lately, in my own time outside of work, is setting up a postgres DB, pointing po
by jcpst 6y ago
For a side project? I think that makes a difference here.
What I’ve been doing lately, in my own time outside of work, is setting up a postgres DB, pointing postgraphile to it, then I have the API out of the way.
From there, if I’m consuming that API in a statically-typed language, I’ll look at generating the models I need from the graphql schema with quicktype.
That process is usually quick enough that there’s no reason to mock.
I suppose if I was doing UI first, I would just have the repository layer that’s abstracting my calls to whatever just have a function that returns a dumb static object in the shape I expect.