Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you make a browser-based app without web server?

Our team is in contract with a company that has put a few constraints due to security reasons. We work in their offices, and our computers (provided by that company) at work are monitored by their network security system and the Internet is tightly monitored as well. In addition, excel, word, pdf, text, and many other files are encrypted.

We share an Excel file to keep track of our work in progress. This excel file is stored in a folder which is located in a server that the company specifically gave us the permission to access.

Only pipeline in which we can share any files or data is via that specific folder across the network which is only accessible by us.

My goal is to make a browser-based application that mimics what is being done on the excel file, but the constraints for this application are that, it cannot be an external web application where data is sent via the Internet and stored externally, and we cannot have any of our own physical computer to be made as a server, and they cannot provide us with a local machine to serve a web application.

My question is, is it possible to make a stand-alone browser-based application that can run without a server, and still be able to store data in [nosql,sqlite,text file,json,etc.], which many people can access at the same time? If yes, what are some tools that are usually recommended for this purpose?

I'd really appreciate your help, thanks!

like image 564
Ji Park Avatar asked Jul 14 '13 05:07

Ji Park


People also ask

Can we run a web application without a server?

In theory, it's possible to create "serverless" web applications using WebRTC, though WebRTC normally uses a signalling server to connect clients. This might be useful for sharing data between two different browsers on the same machine without an Internet connection.


2 Answers

Though this question was raised long back, feeling its relevance now also, below are the solution options that became available now as part of the developments in creating Progressive Web Applications(PWA).

Offline capability or offline first thinking being an important characteristic of PWA, the way PWA introduces the offline capability is by using

  • Application Cache/ Service Workers to manage your application when the user is offline.
  • For storing data you can use Cache API, IndexedDB API, Web Storage API. Here one of the promising API localForage is that wraps IndexedDB, WebSQL, or localStorage which makes it compatible with legacy browers as well

Another way of solving the problem would be to use the Hoodie, free and open source solution from the Offline First GitHub Organisation. This uses CouchDB and Node.js written in JavaScript.

like image 194
Joseph T F Avatar answered Sep 26 '22 02:09

Joseph T F


I guess if you want this done, then you need to start working on your politicking skills and get them to see the value of a real server that would help all involved. You can build it so that it is internal only.

like image 43
Joshua Wilson Avatar answered Sep 26 '22 02:09

Joshua Wilson