You don't need a server

Recommend this page to a friend!

      PowerTechTools  >  All threads  >  You don't need a server  >  (Un) Subscribe thread alerts  
Subject:You don't need a server
Summary:Use nwjs to preclude need for server
Messages:2
Author:Anton Triola
Date:2016-06-02 16:00:00
 

  1. You don't need a server   Reply   Report abuse  
Picture of Anton Triola Anton Triola - 2016-06-02 16:00:00
Using browser storage is OK, but you can save your logs directly to a file on the local machine and eliminate the need for a server by simply running your js &/or html under nwjs (nwjs.io).

If this code is targeted as a desktop app, you can take advantage of node.js functionality, which is built in to nwjs, and use all html/js etc. web-code as a native app in win, osx and linux with no code changes.

There are no same-origin restrictions, I use nwjs to run a player for live streams and have full use of web-audio api to process the audio live, compressor, eq (no browser will let you do that).

No changes for code that runs on your server is required but now you can offer a desktop app, as well, that 'just runs' for all three major platforms.

Oh yeah, you can also protect your code if you desire with the built-in bytecode generator, it works very well.

Ta, Tony

  2. Re: You don't need a server   Reply   Report abuse  
Picture of Karl Holz Karl Holz - 2016-06-04 20:52:47 - In reply to message 1 from Anton Triola
Hey Tony,

thank you for your advice, I'll check that out. Sounds like something i'm looking for for other projects I have in mind.