MarkLogic's Vanguard team has built a plugin for the Slush generator, which is available from GitHub and NPM. Slush provides a generic framework using a three-tier architecture to perform scaffolding tasks using Gulp. The Vanguard Team uses Slush to ramp up a new project folder with a single command. It creates a REST-type MarkLogic Roxy project for you; copies a Node.js/AngularJS stack on top of it; and runs some initialization commands for you; all in a single command.
The MarkLogic Engineering team built an application called Samplestack using the same components. The most important difference between Slush and Samplestack is that Samplestack provides a static fully-fledged demo application, while the Slush plugin is a base template, a toolset, and a set of readily available components.
Details about the Stack
The stack we are using consists of three layers:
Even though this can be technically seen as a three-tier solution, the middle-layer is mostly serving as a proxy between front-end and back-end. There is currently no business logic in the middle-layer, which was a deliberate choice to keep the architecture simple. Based on the way it works, it might be better to describe this as a two-tier solution. However, nothing stops you from moving business logic into the node-layer, effectively separating application logic from business logic, and maturing the middle-layer into a proper middle-tier. Slush is a POC (proof of concept) tool because building a production application with a pass-through middle tier would have the same security problems as exposing an ODBC connection to end-users. In this way, the generator is like Application Builder -- a great way to get started quickly, but remember to address security before launching.