Re:If Not SPAs, What?
by jamil7 on Thursday October 29, 2020 @02:56AM
(#24927990)
Haven’t used it but aren’t there things that can connect to a swagger API spec and do some of the heavy lifting for you? I agree that the network layer in frontend is tedious to implement, things like GraphQL and Apollo attempt raise the abstraction level. What I would really like to see is something even more abstracted, e.g a wrapper around indexdb you can write to that syncs periodically over websockets to your server, more similar to the patterns we use on mobile.
[ Parent
| on HN ]
Re:If Not SPAs, What?
by richeyryan on Thursday October 29, 2020 @05:05AM
(#24928534)
It seems that you are describing pouchdb: https://pouchdb.com/
You're right Pouch completely slipped my mind, it's a great solution. But what about something more generic on the backend that wasn't database specfic, some sync engine you could put in front of whatever database you wanted. Can you do something like this with Pouch?