Build an offline-first to-do app with React + CouchDB

Multi-leader replica sets

So what do multi-leader replicas have to do with my to-do app?

Roll up your sleeves

UI-only CRUD app

Create a database that lives on the user’s device

Ordering Events

Logical Clocks

Lamport Timestamps: Defined

So how do we build this?

Syncing our local database with a remote-hosted one

The final stretch

Disable the internet connection

Conclusion

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store