Questions tagged [roxy]

Roxy is a cross-platform, multiple-environment utility for configuring and deploying MarkLogic applications. Using Roxy you can define your app servers, databases, forests, groups, tasks, etc. in local configuration files. Roxy can then remotely create, update, and remove those settings from the command line. Roxy also provides scaffolding to help you build REST API extensions.

http://developer.marklogic.com/code/roxy

github.com/marklogic/roxy https://github.com/marklogic/roxy

Roxy comes with 3 separate useful components

Roxy Deployer

Roxy Deployer makes managing MarkLogic application easy. Simply edit a few configuration files and you have full access to create and deploy applications to MarkLogic servers, local or remote. Roxy Deployer is written in Ruby and is easily extended to add additional functionality. The Deployer can be used independently of the other two components.

Roxy mVC

For building pure XQuery applications, the mVC (with a de-emphasis on m) is a light-weight MVC framework fashioned after Ruby on Rails and CakePHP. It relies heavily on Convention over Configuration.

Roxy Unit Tester

What good is your code if it doesn't work? Testing is paramount to the development process. The Roxy Unit Tester tests XQuery with XQuery. Write your tests in XQuery and run them from the UI or from the command line. Roxy Unit Tester produces JUnit XML output so you can use it with your favorite continuous testing tool.

Tutorials & Screencasts

There are a series of tutorials available and screencasts available as well.

23 questions
3
votes
1 answer

Recommendations roxy settings for MarkLogic 8 with dev, prod or local environment variables?

By default, there is three environment variables that can be run with ruby roxy configuration of a MarkLogic (the roxy script is here: https://github.com/marklogic/roxy). The three variables are: local, dev and prod. Although, others environment…
Jordan Stewart
  • 3,187
  • 3
  • 25
  • 37
2
votes
1 answer

issue on updating roxy for Marklogic 9.0-5

I am getting error while trying to run "ml upgrade --branch=master" in the command line for upgrading roxy 1.7.3 to get latest version of roxy. ERROR: No such file or directory @ rb_sysopen - C:/Users/RKAR/AppData/Lo …
RKar
  • 31
  • 2
2
votes
1 answer

Insert a document into a particular database MarkLogic

I'm setting up a database with roxy, which is different from the "documents" database. I want to insert a config file into that database. I have this function in xquery ml-1.0 xquery version "1.0-ml"; declare namespace appsetup =…
Jordan Stewart
  • 3,187
  • 3
  • 25
  • 37
2
votes
2 answers

How to retrieve configuration from a marklogic server with Roxy

I'm starting to use Roxy to configure my marklogic cluster (version 8). This tool allow me to deploy my configuration on many "clusters" and avoid to do it manually. During my tests, I configured a cluster manually (through the web administration -…
romain-nio
  • 1,183
  • 9
  • 25
1
vote
2 answers

How to Test MarkLogic Rest APIs in Roxy?

How can I test the MarkLogic REST APIs using the Roxy framework? The default Roxy test framework is used to test the legacy application, and we have recently introduced the REST APIs; So looking for some custom solution to test the REST APIs. The…
1
vote
1 answer

Delete scheduled task in Marklogic

I'm trying to delete a scheduled task in Marklogic every time my function is called. It should go through the tasks, and delete the task if it matches the correct task path type and time. However I'm getting a

500 Internal Server Error

Beez
  • 478
  • 9
  • 23
1
vote
1 answer

Marklogic 9 + Roxy: can't connect to created database using Node.js

I'm trying out the Roxy deployer. The Roxy app was created using the default app-type. I setup a new ML 9 database, and I ran "ml local bootstrap" using the default ports (8040 and 8041) Then I setup a node application. I tried the following (sample…
Roy Tang
  • 5,643
  • 9
  • 44
  • 74
1
vote
1 answer

How to create a webdav port for my application using Roxy?

I want to create a local environment for a new application and wants to bootstrap it using Roxy. I have specified the various ports in my local.properties file. app-port=6060 xcc-port=6070 webdav-port=6090 Upon hitting the bootstrap command ml…
bosari
  • 1,922
  • 1
  • 19
  • 38
1
vote
1 answer

Adding a new module from Oxygen Xml Editor throws error when hit from http get but works fine when deployed through Roxy?

I have a WebDAV connection and have a directory structure of my Xquery codebase. When I right click and create a new xqy file from the Oxygen Xml Editor's file explorer, define a module namespace, my logic and later import the library module to the…
bosari
  • 1,922
  • 1
  • 19
  • 38
1
vote
2 answers

MarkLogic - Custom Search Snippet

I am using Roxy to manage my project. Also using MarkLogic 8.0-6.1 I am trying to submit a searchTerm, and return a custom formatted search:snippet Here are the complete steps that I am taking: ./../roxy/ml new test-app --server-version=8…
Busturdust
  • 2,447
  • 24
  • 41
1
vote
2 answers

search:search returns results in query console but no results when its hit from an application by http get?

I have a strange situation here. I am trying to build an application that sends http get request to the MarkLogic server. It hits the XQuery code that perform search:search(""). I am passing empty query to the search so the default relevant results…
bosari
  • 1,922
  • 1
  • 19
  • 38
1
vote
1 answer

MarkLogic Roxy configuration for app-modules-db

In the default.properties file in a Roxy project, what is the difference between these two settings? app-modules-db=${app-name}-modules modules-db=${app-name}-modules
nosqldev
  • 75
  • 5
1
vote
1 answer

Failing to create custom user permissions to restrict content

I am struggling to get my user permissions/privileges/roles setup correctly to get the behaviour I need. I am using MarkLogic 8 and Roxy to create and deploy an application. This application has different users that have content that should be…
Hugo Koopmans
  • 1,349
  • 1
  • 15
  • 27
0
votes
1 answer

roxy conversion to ml-gradle properties error

Trying to convert an existing roxy project to ml-gradle using the ml-gradle plugin. Here's the build.gradle: plugins { id "net.saliman.properties" version "1.5.1" id "com.marklogic.ml-gradle" version "3.1.0" } This generates following…
Praveen Ray
  • 83
  • 1
  • 8
0
votes
1 answer

Xquery extracting property values from .properties file

I am currently trying to extract property values from my properties file, but am running into some problems. I can't test this in ML query console, because the properties file doesn't exist there. I am currently trying to grab the values of the file…
Beez
  • 478
  • 9
  • 23
1
2