Create MLJS webapp - adamfowleruk/mljs GitHub Wiki

There are several ways you can do this. Below I describe each with links to relevant tutorials.

Use Yeoman

Paul Hoehne has create a yeoman generator for MLJS! This does all the leg work for you, and enables you to run three commands and have a working MLJS based webapp. More on this on his GitHub site.

Use Bower

I have a bower repo containing production MLJS webapp code. The package is called mljs-bower.

Copy the sample Workplace app

The Workplace is a working HTML 5 MarkLogic REST application. You can download this app and it's Roxy deployer from the dist folder on GitHub. Install documentation and video coming soon...

Use Roxy to create a Hybrid app

Check out this Video Tutorial for creating your own app in MLJS using a Roxy hybrid XQuery / REST API MLJS app.

Download the production tar ball

There is a Zip and tar.gz download of the production css, images and js for MLJS. Feel free to grab them and install in your own webapp.

Running in Node.js

There is a run-mljswebserver shell script and js file in the root of the MLJS repo. Simply reconfigure these for your MarkLogic content database, and you can run a MarkLogic REST application from outside of MarkLogic, in Node! All REST requests are proxied to MarkLogic. This works with any MarkLogic REST app. Try it with the Workplace app above.