Kennygunderman / state-of-health-tracker

State of Health Fitness Tracking App | Built with React-Native
https://thestateofhealth.com/
328 stars 87 forks source link

Add support to use only local storage #33

Open MichalMaminski opened 2 months ago

MichalMaminski commented 2 months ago

Hi,

Are you open to allow to add implement that will allow to use SQlite db. To run project you need have Firebase, it would be nice to have possibilities to run just with local storage option. If yes I can work on it and prepare solution for it.

Let me know what do you think.

Regards

russssl commented 2 months ago

Haven't seem internal structure of the proeject but sqlite could be used with exporting data to archive / saving to google drive or other cloud storage provider (for self-hosting solutions for example) and when downloading app you could restore your data from archive. the downside here is that we lose syncronisation. For privacy nerds self-hosting database option could be nice (with your oun server accounts (for family or friends) and your own sync. The downside here is that it could bemuch work to implement for not so many people using it. For myself it would be an amazing option. but creating two separate database providers could be a lot to do (it could be potentially divided e.g firebase - postgres as a self hosting option or firebase - sqlite as local only option). I think it is for @Kennygunderman to decide but if the idea would be outlined and planned properly implementation of thi could be pretty fun.