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)
Related
I am Creating POS system in C# MVC with SQL server database. I want my system to be able to work when No internet and whenever I re connect to the internet, system should be synchronized with live.
I have searched from internet but In all solution they suggested some javascript coding. but i have already created system in C# MVC.
So how can i change my existing system to be able to work in offline mode?
Did you look into MS SQL Server Replication?
With Replication you can replicate your Local Database against Remote database either on demand / scheduled.
Replication Types: https://technet.microsoft.com/en-us/library/ms152565(v=sql.105).aspx
I am learning meteor and making simple chat app then this question hit my mind..
If I am making web app then that is fine because all the user will access from save server and database but what about mobile users..
Lets say I am making android app and I want to build it.. When I build the app will it give me Mongo database along with apk or I have to install it manually ?
Second i can think of its do everything in the same database and just make browser for the app..
But what I want to store per user data in their mobile.. that is no related to my database ?
In my chat app in the browser it is working in realtime but what If i build and make apk for android with different database ..
I just want to know what would be the best approach if I am making a messaging app ? I am confused on database .
Thank you
The database is always remote MongoDB on the server where your server code runs.
For example your server address is http://someserver.com. This is where you publically deploy your application.
While building the apk, you need to specify the --mobile-server attribute which tells your mobile application where to point for server code and database.
If you host your database on some MongoDB hosting providers like compose.io then you need to specify MONGO_URL environment variable while building.
To cut it short, MongoDB is neither on apk nor on client (they have something called minimongo on client which is definitely not your actual database) but it is on the server where you have hosted your application.
Good Luck!
I have a fairly simple project in progress where I create a very basic upload/download capable Silverlight 5 app to upload a user-selected file from their local machine to an Azure database. After reading up on the variety of ways to do this (WCF RIA services and others) I haven't been able to get a clear idea of how I would best implement this.
Some more information about my app would be that I envision it to be very simple, with the upload consisting of a file selection and subsequent tagging and uploading to the Azure database and the download portion consisting of a user searching for the file in a pivot-viewer like environment and then selecting and downloading the file they want. If it is relevant: the app will run in IE, Chrome, and Firefox.
How would I best connect my Silverlight app to a database set up in Windows Azure? Links to tutorials or explanations would be greatly appreciated! I'm looking for possible examples with sample code of how a Silverlight app could be written to connect and upload/download a file as well as samples/examples of what I need to setup on the Azure side in order for the app to function properly.
I think you need to use any tool which migrates your schema and connect to SQL azure database with proper server name using SQL server 2012.
I want to create a desktop application, I normally work on web based applications so have very little knowledge about creating console applications using .Net and visual studio.
So now in this application I'l also be using database connectivity and stored procedures (SQL server). But how should I start doing this as I dont want to install SQL server on my clients system.
thanks in advance..
I think it depends on the goal of your application, the amout and sturcture of the data and the environment. The last point aims to the client system, if the client is part of an enterprise network (e.g. Active Directory) or is a common user at home.
maybe you can use xml or json files to store the data
if you need a database, you can create a setup project for your application which automatically installs a SQL Server express
another way is, if it's applicable for you, your application can consume a webservice which provide the data
you could use SQL Server compact http://msdn.microsoft.com/en-us/library/cc645984(v=sql.100).aspx or SQL Lite to embark your DB in your application without external dependencies.
Otherwise, if offline isn't a requirement, you could go the "cloud" way, with web APIs
We are developing client application for our solution. Its a desktop client. We are using flex for same. (Although I know flex is meant for web application and air application is best suited for desktop clients, but due to some build issues we can't go for air applications). Now according to our use case we required to read file from local file system which is not allowed in flex application due to sandbox policy. To override it we had planned to use it in local mode (i.e. running from local file system instead of deploying in web container). So after running application in local mode it bypasses sandbox policy and allows to read local file. Eventually we requires remote services call (either using web services or blaze ds) also in our application. To avoid sandbox restriction for network access in local mode we are planning to explicitly grant network access permission to our flex application. So does anybody finds any issues in this approach which I may encounter ?
Thanks,
Ankur Shah
As long as you make sure to use the local-with-networking security sandbox. This will allow you to access both the local file system and the network.
You can see more about the different sandbox types here: http://livedocs.adobe.com/flex/3/html/help.html?content=05B_Security_04.html
We had to avoid any of these kinds of issues by using Air with C# WebServices and HttpServices (twas an Air GUI with C# server-side running on Windows). Although not much help to you.
Another possible solution might be to use JavaScript within Internet Explorer to access the local file system via ActiveX controls (which I hav'nt done), and then use Flex's ExternalInterface API to grab the JavaScript/Html data from within the same browser (which I have).