1

Im looking for the best way to build an on/offline application with symfony2. I need some advice here:

  • Users can access the application from navigator on their computer or from tablet (like iPad)
  • When there is no connection the application must run in offline mode
  • Data should be stored locally until the detection of a connection
  • Local data must be syncronized with server data

the question is : what is the best approach to implement this behavior knowing that the application must be developed with symfony2 (normal behavior).The main problem is the offline mode. Should i use HTML5 local storage or SQLite? and what is the best approach to syncronize data between the two modes (from server to local/or from local to server)

5
  • 2
    Maybe you should consider a PouchDB/CouchDB implementation! When you write an app with consideration for an "offline mode", you will have to maintain a lot or all of the functionality on the front-end. The back-end becomes much more "dumb" with just simple CRUD functionality. There's a lot of ways to go about this, Symfony2 being one solution.. but your question is too broad. Sorry. Commented Apr 28, 2015 at 17:07
  • I think that CoucheDB can help me in managing conflicts easly. Correct me if i'm wrong, but if i write all of the functionality on the front-end where is the point of using symfony here ? im just looking for answers .Can you explain a little bit how symfony can help me in this aproach ? Commented Apr 29, 2015 at 8:52
  • That's why I said Symfony2 is only one solution. In your scenario, you're turning it into a CRUD interface, really. Sorry - you have to be more specific around here. You don't even mention what kind of application you're doing. It is the vaguest thing to ask. Commented Apr 29, 2015 at 13:05
  • To be more clear my application have to manage product stock so it includs CRUD , listing of available products ,managing clients and showing some statics related to each client. The access to the application must be secured. So for exemple how user can navigate between pages if there is no connection ? Commented Apr 29, 2015 at 13:41
  • AngularJS is one front-end MVC that has support for "pages" without having to make an HTTP request. I would look into that as well. Commented Apr 29, 2015 at 13:44

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.