136 karma · joined September 21, 2017
https://hasura.io/blog/building-an-offline-first-web-app-wit...
Start with defining the swagger.json Then generate:
- frontend-typings
- frontend request services
- backend routes and DTOs
- database fields
- use angular-jsonform for forms
- use the swagger for frontend validation
- use the swagger for backend validation
- use the swagger to discuss api changes with the client
This saves half of developing time and prevents 90% of your bugs
You can do conflict-resolution by subscribing to the changeFeed and when multiple versions with the same revision-height exist, you create a new version with a 'merged' document. Depending on your dataset this can be tricky and painful.
RxDB can only be used with javascript and will likely ever be.