This article is about a new servlet base class I have created to simplify serving up javascript frontends from the OSGi web whiteboard.
Continue reading Simplified delivery of react.js from apache karaf
Tag Archives: webpack
A Java programmer’s guide to delivering webapp frontends
When I started investigating (googling) web frontends, I found tutorials for various frameworks and I found tutorials using node.js to deliver frontends to web browsers on localhost.
What I did not find, was something telling me how I should pack up and deliver the webapp frontend from my production system, so that comes here:
- A web application frontendĀ is a piece of javascript code, that builds its user interface by rebuilding the DOM tree of the webpage that loaded it
- The javascript needed for a webapp is packaged up as a big javascript file, typically named bundle.js,
- The initial HTML file references bundle.js
- The initial HTML file also contains an element that matches what the javascript code expects to be its start element (i.e. the point in the DOM of the parsed HTML file, where the javascript program starts rebuilding its own DOM)
Continue reading A Java programmer’s guide to delivering webapp frontends
Deliver react.js from apache karaf
Edit: delivering react.js has been made simpler, seeĀ Simplified delivery of react.js from apache karaf for details.
Continue reading Deliver react.js from apache karaf