From cloud to local database in jquery app

This forum contains topics that were moved from Get Satisfaction
Dennis
Posts: 0
Joined: Tue May 05, 2015 1:29 pm

From cloud to local database in jquery app

Post 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

Galyna Abramovych
Site Admin
Posts: 68
Joined: Tue Mar 22, 2016 6:03 pm

From cloud to local database in jquery app

Post 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.

Dennis
Posts: 0
Joined: Tue May 05, 2015 1:29 pm

From cloud to local database in jquery app

Post 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

Dennis
Posts: 0
Joined: Tue May 05, 2015 1:29 pm

From cloud to local database in jquery app

Post by Dennis »

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

Dennis

Serhii Kulibaba
Posts: 147
Joined: Tue Aug 27, 2013 1:47 pm

From cloud to local database in jquery app

Post 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

Dennis
Posts: 0
Joined: Tue May 05, 2015 1:29 pm

From cloud to local database in jquery app

Post by Dennis »

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

Serhii Kulibaba
Posts: 147
Joined: Tue Aug 27, 2013 1:47 pm

From cloud to local database in jquery app

Post by Serhii Kulibaba »

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

Dennis
Posts: 0
Joined: Tue May 05, 2015 1:29 pm

From cloud to local database in jquery app

Post by Dennis »

Is there a guide for making this work?

Serhii Kulibaba
Posts: 147
Joined: Tue Aug 27, 2013 1:47 pm

From cloud to local database in jquery app

Post 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...

Dennis
Posts: 0
Joined: Tue May 05, 2015 1:29 pm

From cloud to local database in jquery app

Post 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

Post Reply