I'm using TouchDB on an app to synchronize data with a CouchDB server on the cloud.
Everything is working fine, but I need to now deploy a preloaded version of the app with the app bundle, so the user doesn't have to download MBs of static data.
What's the best way of doing this? I'm thinking of just including the TouchDB directory with the database and the attachments on my project, and before I initialize the TouchDB database I check if it exists under the "Application Support" database and if not I copy it in my code.
Is this the correct approach?