facade
is a rewrite sample application. It exposes MarkLogic Server by implementing a small subset of the CouchDB HTTP API. The objective of facade
is to demonstrate how to use rewrite to create a JSON backed web-service. Simple decisions were made in implementing the service and it should not be regarded as an real MVC implementation. In fact the code needs serious refactoring.
In the future facade
could be used as a compatibility layer between MarkLogic Server and CouchDB, leveraging drivers and replication amongst each other. At this point that is not the objective of the project.
facade
includes futon which is part of CouchDB. A small fix to support multiple versions of attachments was applied.
Create a MarkLogic HTTP AppServer and configuration make rewrite.xqy
the default rewriter script.
You can now visit create databases and documents using futon by accessing /_utils/
(e.g. localhost:8953/_utils/)
This section doesn't cover how to set up an HTTP Application Server in MarkLogic. If you are a beginner I suggest you start by browsing the MarkLogic Developer Community site or sign up for training.
Think the documentation sucks? Think the performance is crap? Think facade
is cool but is missing feature X? Then contribute to the project.
- Message
dscape
on github talking about what you want to accomplish. - Fork facade in github
- Create a new branch -
git checkout -b my-branch
- Develop/fix the functionality
- Test your changes
- Commit your changes
- Push to your branch -
git push origin my-branch
- Create an pull request
To run the tests simply access /_tests/
:
(assuming 127.0.0.1 is the host and 8090 is the port)
http://127.0.0.1:8090/_tests/
Make sure all the tests pass before sending in a pull request!
If you want to report a bug please file a issue.
- Code:
git clone git://github.com/dscape/facade.git
- Home: http://github.com/dscape/facade
- Discussion: http://convore.com/marklogic
- Bugs: http://github.com/dscape/facade/issues
(oO)--',- in caos