A rich JS app on top of Nuxeo’s WebEngine
The result is a basic, single-page document browsing site, with its client-side logic built with Backbone.js (see previous post), and some eye sugar brought by the Isotope library. In order to keep the code base clean, we also put our hands on Require.js, very useful for splitting code into modules and keeping the scripts loading management under control.
The development of this little app went very well ; while we eventually didn’t use that much of what WebEngine had to offer (server-side templating with Freemarker, easy Nuxeo-related web services creation), we made extensive use of the Content Automation API that Nuxeo provides. If we needed a more specific RESTful API, we could have also made use of the WebEngine and its “WebObjects”, that helps mapping documents into JSON for instance.
The sources for the module can be found on Github.