Page 1 of 5

From cloud to local database in jquery app

Posted: Mon Jan 30, 2017 3:11 pm
by Dennis

Hi
Can anyone help me on how to transform my "only online" JQUERY app into using API express or something to make it work offline? I dont need to add and delete data, its only reading and querying data from the appery database.

Thank you so much.

Dennis


From cloud to local database in jquery app

Posted: Mon Jan 30, 2017 5:33 pm
by Galyna Abramovych

Hello Dennis,

Could you please check this document first to get the general idea of the issue: https://docs.appery.io/docs/apiexpres....
There is a lot of information on how to define API Express for JQM projects working offline.
Also, please note that, as of now, your question is very general and such realization is purely custom.


From cloud to local database in jquery app

Posted: Mon Jan 30, 2017 8:01 pm
by Dennis

But is it possible to take the mappings I have done already, and reuse these for an offline app? Made a complete app, just to find out it only worked offline :/
I would just like to know the general steps to take here. I made a REST API with connection to my current papery database, but where to go next?

Thank you so much


From cloud to local database in jquery app

Posted: Thu Feb 02, 2017 7:03 am
by Dennis

Hi Galyna
Could you please just give me an idea where to start?

Dennis


From cloud to local database in jquery app

Posted: Thu Feb 02, 2017 3:10 pm
by Serhii Kulibaba

Hello Dennis,

You have to use API Express services to have an offline mode. If you use another type of connection to the database - it is impossible just change the service, you have to re-connect all of them


From cloud to local database in jquery app

Posted: Fri Feb 03, 2017 6:30 am
by Dennis

But I am just using the Appery.io database. Do I still need to re-connect all the mappings?


From cloud to local database in jquery app

Posted: Fri Feb 03, 2017 10:05 am
by Serhii Kulibaba

Yes, if you use Appery.io database directly (without API Express).


From cloud to local database in jquery app

Posted: Fri Feb 03, 2017 10:28 am
by Dennis

Is there a guide for making this work?


From cloud to local database in jquery app

Posted: Tue Feb 07, 2017 6:36 pm
by Serhii Kulibaba

1) Create a database connection: https://docs.appery.io/docs/apiexpres...

2) Use that connection to generate API Express services: https://docs.appery.io/docs/apiexpres...

3) Use these services in the application to make an offline mode work:
https://docs.appery.io/docs/apiexpres...


From cloud to local database in jquery app

Posted: Wed Feb 08, 2017 11:09 am
by Dennis

Thank you so much Sergiy

My new mapping seems to work in my browser, but when compiling the app to IOS and running in flight mode, i dont see my query

Image Image