The Living Thing / Notebooks :

Javascript apps

On the creation and testing of apps based on Javascript and possibly HTML5 technology.

Normal web site

On the internet

Covered elsewhere. It’s called the web. Except there is a wrinkle of interest to some of us -offline mode ServiceWorker tech allows you to serve a web app even without connectivity. I don’t care enough about this to really understand the API; I just cargo culted enough bits to make it go. Seems to work.

Local dev website

You can do a lot by just hosting a webpage somewhere, and even some things with an HTML files on your hard disk, although these are locked down for security reasons.

So you run a local server.

Caddy

Caddy, is a free and open source javascript-app-focussed server, and that will get you a long way. Also it supports ssl, which is handy.

npm builtin servers

For npm browser apps, beefy and run-browser and their ilk work.

Oh wait but I need SSL

Crap. I understand, but this is tricky in general. Perhaps you don’t need SSL stuff? most SSL-secured things are also available without SSL on localhost. See secure servers.

Desktop embedded browser

The approach popularised by the abominable Adobe AIR is now much better.

Yep, you can run this on the desktop with a GUI and everything.

Don’t learn some proprietary GUI framework, build a javascript GUI like everyone else.

Now, choose your weapon (Not Adobe AIR).

Compare these two options.

Smartphone framework apps

For tablets etc I should link to phonegap and cordova and titanium, but I am bored now. Build apps using javascript via Cordova or CocoonJS. Cordova takes HTML/JS apps to the mobile phone.

react-native is facebook’s attempt to generalise to native apps. I don’t understant its precise relationship.

ionic builds on cordova with native look-and-feel.

Chrome apps

Run it straight in your Chrome browser.

Cons:

Pros:

Howto: