Search code examples
sqliteweb-applicationsbrowserdesktop-applicationlocal-storage

Local web application without web server and access to SQLite


I want to develop an ERP system, but I want it to run on a web browser. I want it to store data in an SQLite database, but I don't want it to have to work as client/server, just local.

I also want to have access to environment variables and the filesystem. Ultimately I want to manipulate the DOM using C instead of JavaScript.

Is there a browser, framework or library for this?


Solution

  • As far as I know, it's impossible to manipulate the DOM with any language other than JavaScript - since that is the only programming language which the browser will run.

    I would try to think of one of the following:

    1) Run a local web server - why shouldn't you? I am not sure about C, but Python, Ruby, JS and many other languages make these extremely simple to set up.

    2) Just write a GUI application, if you are really opposed to having another program running in the network.

    3) If you're not opposed to Python (instead of C), you can try out Pyjamas - a framework which allows you to code a web-app in Python, and use it as a desktop app later (without running the server). The non-server version won't actually run inside a browser though (AFAIK - I've never tried it myself).