Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As mentioned before, there is no true compilation in Node.js because the nod executable basically compiles javascript code on the fly.</p> <p>A lot of developers use Google's <a href="https://developers.google.com/closure/compiler/" rel="nofollow noreferrer">Closure Compiler</a> which really just "minify" -- removes comments, whitespaces, etc. -- and "optimize" -- converts javascript code to more efficient javascript. However, the resultant code is generally still parsable javascript code (albeit rather hard to read!). Check out this related stream for more info: <a href="https://stackoverflow.com/questions/8287597/getting-closure-compiler-and-node-js-to-play-nice">Getting closure-compiler and Node.js to play nice</a></p> <p>A couple of options that might be helpful:</p> <ol> <li>Develop a custom module for "proprietary" business logic and host it on your secure servers</li> <li>Wrap "proprietary" business logic into a java class or executable that is called as an external process in Node.js</li> <li>Code "proprietary" business logic as compiled web services available on a separate application server that is called by Node.js.</li> </ol> <p>It's up to you to define what part of your application should be considered "proprietary", but as a general rule I would not classify HTML and related javascript -- sent to the we browser -- as "proprietary". My advice is to be judicious here.</p> <p>Lastly, I found the following stream with an interesting approach that might be helpful, but it is rather advanced and likely to be rather buggy: <a href="https://stackoverflow.com/questions/9413123/secure-distribution-of-nodejs-applications">Secure distribution of NodeJS applications</a></p> <p>Hope that helps...</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload