R
R
Roman2013-07-04 02:36:12
Google
Roman, 2013-07-04 02:36:12

How to make a web site work locally in Chrome?

Welcome all.
Next task: there is a Win32 program for accounting for the work of fitness centers, which began to be written 12 years ago and now it is easier to rewrite it from scratch than to modify what is already there.
As part of the concept of writing a new program, it was decided to move most of the functions online and synchronize the database of the local version and the version on the Internet. Today I came up with a slightly bad idea - “but should I transfer everything online at all, so that the work would be in a separate Google Chrome window”.
Accordingly, the question is - is there any solution that allows, in the absence of the Internet (this happens, but customer accounting cannot stop at this moment), the site can continue to work? At least that would work the basic functions. As soon as the Internet rises, it sends the accumulated data to the server.
I know that half of all Google services can work offline. Why are we worse?
We need the help of knowledgeable people. I have never been a programmer and do not know which way to look. Perhaps this is a very bad idea - I ask for your opinion on this matter as well.

Answer the question

In order to leave comments, you need to log in

7 answer(s)
V
Vladimir Pilipchuk, 2013-07-04
@SLIDERWEB

A local server with an application that supports synchronization is quite a solution

S
StepanTomsk, 2013-07-04
@StepanTomsk

You have three options:
1) As SLIDERWEB said, write a local WEB server with synchronization.
2) If the work is only in Chrome, then use its local storage WEB SQL ( Administration , translation of the description ).
3) Implement redundancy of communication channels, if the connection is lost at one provider, then switch to another.
In cases 1 and 2, the participation of programmers will be required, but the second is more flexible, in fact, if there is no connection with the server, then write operations to the server are postponed to separate tables. Plus, you must provide that you must have a copy of the necessary data from the server database in the browser database.
Option number three requires the participation of the system administrator of each fitness center, and if these organizations are not your affiliates, and you are only a software developer, then you can only recommend it.
The answer to your question is " Yes, it is possible. But is it worth it to spend the resources of programmers on building a fault-tolerant application if it is possible to organize redundant communication channels at the expense of less money? "

P
pomeo, 2013-07-04
@pomeo

hacks.mozilla.org/2010/01/offline-web-applications/

E
EugeneOZ, 2013-07-04
@EugeneOZ

pouchdb.com/
PouchDB is a JavaScript library that allows you to store and query data for web applications that need to work offline, and sync with an online database when you are online.

N
Nikolai Turnaviotov, 2013-07-04
@foxmuldercp

There is local storage, in my opinion, in all popular browsers, given the common engine for opera / chrome / chromium, firelis and IE
, you can try to do something similar to Gmail offine.
there is no point in fencing a local web server either for financial and time costs for programmers or for admin reasons of support and monitoring

E
egorinsk, 2013-07-04
@egorinsk

In online mode, there is a risk that when the Internet is disconnected, the employee will press F5, and the application will no longer load.

A
Anatoly, 2013-07-04
@taliban

developer.chrome.com/apps/about_apps.html don't reinvent the wheel, because you're already interested in chrome, it has api for Foolin apps (not plugins) that work fine locally.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question