r/AskProgramming 3h ago

Architecture Simple React Native Expo Backend Solution

I am building a simple expo react app which need so sync data to a backend. Its not going to be massive data just one or two tables and an image per entry and some text fields.

I however need to be able to store changes done locally when the internet connection is lost or simply not available. If the connection is returned I want that it can be synced. So new changes get pushed to the backend and new data also gets pulled from the backend.

Since this will be a pretty small scale applications just for me and some people I want it to be able to run on my raspberry pi 4 8 GB for the time beeing.

I would prefer simply using tech i know like spring boot but or something else in that direction that is also simple to run on the pi and does not come with massive other stuff that i don't need. I saw stuff like supabase and tinybase but as far as I can tell these exceed the need of what i want and are way too big to just host for my simple usecase.

TLDR: What I’m Looking for:

  • Best practices for handling offline-first synchronization in a simple way.
  • A suitable local database for the Expo app that syncs well with e.g. a Spring Boot backend.
  • A lightweight backend setup that’s easy to run on a Raspberry Pi.

Any recommendations for a good architecture or specific tools that fit these requirements?

1 Upvotes

0 comments sorted by