I am looking for the "How To" or proper documentation/tutorials to bring famo.us JavaScript files online from a Java (JRE8) embedded Jetty 9.3 Web Server.
Normally bringing something online, such as JavaScript, with Jetty is a peace of cake but the Famo.us library seems to have its own rules and a kind of 'deploy' application that always sets the output on the Famo.us cloud. I want it locally on disk drive and let Jetty serve the files. I would be interested what deploy does too?
I found this Famo.us explanation to set-up locally (Famo.us CLI/Node.js,glsify, etc) which for development and testing is fine but can't compare to the Jetty performance and architecture.
So I want the best of both worlds, a Jetty embedded server allowing me to have SSL/TLS, HTTP/2.0 (+Push) and Java at server side and JavaScript and Famo.us (or Famo.us/AngularJS) at client side, all from my local server and not from the Famo.us cloud (which I see as a long term liability by the way).
Is there anyone that can point me to how this is best achieved.
The
famous deploy
is just a scripting of doing a build of your app into thepublic
folder using thenpm run build
script command found in thepackage.json
file then publishing thepublic
folder to the cloud with a wrapper.In your case, use
npm run build
to build your application into thepublic
folder and publish thepublic
folder to your Jetty server the same way you would publish any HTML application.