Re: [MarkLogic Dev General] Roxy deploy CPF

2015-04-30 Thread Geert Josten
Hi,

>From the looks of it, it is trying to find the pipelines inside the
modules database (esif-modules?), but didn¹t find it there. Maybe path to
the pipeline is incorrect and/or you  might need to do a deploy modules
first.

Does that help? Otherwise you can take a look here for a bit of help:
https://github.com//marklogic/roxy/wiki/Working-with-CPF

Cheers,
Geert

On 5/1/15, 12:21 AM, "Chunyu Cong"  wrote:

>Hello,
>
>I got the following error when I tried 'ml local deploy cpf'.
>
>Could someone give me a clue what is the error about please?
>Thanks.
>
>ERROR: {
>
>  "error": {
>
>"evalinfo": "query evaluated in esif-content at file:: as  1.0-ml",
>
>"errorcode": "[1.0-ml] XDMP-ARG: xdmp:eval(\"import module
>namespace p="http://marklogic.com/cpf/pipelin...\";,
>fn:QName(\"\", \"doc\"), xmlns=\"xdmp:eval\">15632994262066241436)
>-- Invalid argument",
>
>"stacktrace": {
>
>  "stack": [
>
>{
>
>  "errorline": "198",
>
>  "errorcolumn": "4",
>
>  "lines": [
>
>")",
>
>"  return",
>
>"xdmp:eval(",
>
>"  'import module namespace
>p=\"http://marklogic.com/cpf/pipelines\"; at
>\"/MarkLogic/cpf/pipelines.xqy\";",
>
>"   declare variable $doc external;"
>
>  ],
>
>  "operation": "cpf:install-cpf-pipelines(xmlns=\"http://marklogic.com/roxy/cpf\";>../src/pipelines/ns-pipeline.xmlpipeline>,
>xs:unsignedLong(\"2906425435323038295\"))",
>
>  "errorDatum": "",
>
>  "code": [
>
>"$pipeline-uris := \"../src/pipelines/ns-pipeline.xml\"",
>
>"$modules-database :=
>xs:unsignedLong(\"2906425435323038295\")",
>
>"$uri := \"../src/pipelines/ns-pipeline.xml\"",
>
>"$doc := ()"
>
>  ]
>
>},
>
>{
>
>  "errorline": "82",
>
>  "errorcolumn": "6",
>
>  "lines": [
>
>"(",
>
>"
>cpf:install-system-pipelines($domain/cpf:system-pipelines/cpf:system-pipel
>ine),",
>
>"
>cpf:install-cpf-pipelines($domain/cpf:pipelines/cpf:pipeline,
>xdmp:database($domain/cpf:context/cpf:modules-database))",
>
>")",
>
>"  let $context :=
>cpf:evaluation-context(xdmp:database($domain/cpf:context/cpf:modules-datab
>ase),
>$domain/cpf:context/cpf:root)"
>
>  ],
>
>  "operation": "cpf:load-from-config(xmlns=\"http://marklogic.com/roxy/cpf\";>...)",
>
>  "errorDatum": "",
>
>  "code": [
>
>"$config := xmlns=\"http://marklogic.com/roxy/cpf\";>...",
>
>"$domain := xmlns=\"http://marklogic.com/roxy/cpf\";>My Test
>DomainThis domain is awesome!!..."
>
>  ]
>
>},
>
>{
>
>  "errorline": "461",
>
>  "errorcolumn": "3",
>
>  "lines": [
>
>"\t  )",
>
>"};",
>
>":) cpf:load-from-config(xmlns=\"http://marklogic.com/roxy/cpf\";>",
>
>"  ",
>
>""
>
>  ],
>
>  "operation": "xdmp:eval(\"(:
Copyright 2012 MarkLogic
>Corporation

Licensed un...\", (), xmlns=\"xdmp:eval\">12459739181686467876di
>fferent-tr...)",
>
>  "errorDatum": ""
>
>},
>
>{
>
>  "whereURI":
>"/MarkLogic/appservices/qconsole/qconsole-amped.xqy",
>
>  "errorline": "211",
>
>  "errorcolumn": "4",
>
>  "operation":
>"amped-qconsole:qconsole-eval(\"(:
Copyright 2012 MarkLogic
>Corporation

Licensed un...\", (), xmlns=\"xdmp:eval\">12459739181686467876di
>fferent-tr...)",
>
>  "errorDatum": "",
>
>  "code": [
>
>"$xquery := \"(:
Copyright 2012 MarkLogic
>Corporation

Licensed un...\"",
>
>"$vars := ()",
>
>"$options := xmlns=\"xdmp:eval\">12459739181686467876di
>fferent-tr..."
>
>  ]
>
>},
>
>{
>
>  "whereURI": "/MarkLogic/appservices/qconsole/qc-evaler.xqy",
>
>  "errorline": "595",
>
>  "errorcolumn": "12",
>
>  "operation":
>"qceval:do-eval(xs:unsignedLong(\"1763775169632162950\"),
>document{text{\"(:
Copyright 2012 MarkLogic
>Corporation

Licensed un...\"}}, \"\", xmlns=\"xdmp:eval\">12459739181686467876di
>fferent-tr...,
>\"xquery\")",
>
>  "errorDatum": "",
>
>  "code": [
>
>"$qid := xs:unsignedLong(\"1763775169632162950\")",
>
>"$query := \"(:
Copyright 2012 MarkLogic
>Corporation

Licensed un...\"",
>
>"$wrappedQuery := \"\"",
>
>"$options := xmlns=\"xdmp:eval\">12459739181686467876di
>fferent-tr...",
>
>"$query-type := \"xquery\""
>
>  ]
>
>},
>
>{
>
>  "whereURI": "/qconsole/endpoints/evaler.xqy",
>
>  "errorline": "87",
>
>  "errorcolumn": "28",
>
>  "operation": "",
>
>  "errorDatum": "",
>
>  "code": [
>
>"$http-opts := xmlns:rest=\"http://marklogic.com/appservices/rest\";>name=\"sid\" a

[MarkLogic Dev General] Roxy deploy CPF

2015-04-30 Thread Chunyu Cong
Hello,

I got the following error when I tried 'ml local deploy cpf'.

Could someone give me a clue what is the error about please?
Thanks.

ERROR: {

  "error": {

"evalinfo": "query evaluated in esif-content at file:: as  1.0-ml",

"errorcode": "[1.0-ml] XDMP-ARG: xdmp:eval(\"import module
namespace p="http://marklogic.com/cpf/pipelin...\";,
fn:QName(\"\", \"doc\"), 15632994262066241436)
-- Invalid argument",

"stacktrace": {

  "stack": [

{

  "errorline": "198",

  "errorcolumn": "4",

  "lines": [

")",

"  return",

"xdmp:eval(",

"  'import module namespace
p=\"http://marklogic.com/cpf/pipelines\"; at
\"/MarkLogic/cpf/pipelines.xqy\";",

"   declare variable $doc external;"

  ],

  "operation": "cpf:install-cpf-pipelines(http://marklogic.com/roxy/cpf\";>../src/pipelines/ns-pipeline.xml,
xs:unsignedLong(\"2906425435323038295\"))",

  "errorDatum": "",

  "code": [

"$pipeline-uris := \"../src/pipelines/ns-pipeline.xml\"",

"$modules-database := xs:unsignedLong(\"2906425435323038295\")",

"$uri := \"../src/pipelines/ns-pipeline.xml\"",

"$doc := ()"

  ]

},

{

  "errorline": "82",

  "errorcolumn": "6",

  "lines": [

"(",

"
cpf:install-system-pipelines($domain/cpf:system-pipelines/cpf:system-pipeline),",

"
cpf:install-cpf-pipelines($domain/cpf:pipelines/cpf:pipeline,
xdmp:database($domain/cpf:context/cpf:modules-database))",

")",

"  let $context :=
cpf:evaluation-context(xdmp:database($domain/cpf:context/cpf:modules-database),
$domain/cpf:context/cpf:root)"

  ],

  "operation": "cpf:load-from-config(http://marklogic.com/roxy/cpf\";>...)",

  "errorDatum": "",

  "code": [

"$config := http://marklogic.com/roxy/cpf\";>...",

"$domain := http://marklogic.com/roxy/cpf\";>My Test
DomainThis domain is awesome!!..."

  ]

},

{

  "errorline": "461",

  "errorcolumn": "3",

  "lines": [

"\t  )",

"};",

":) cpf:load-from-config(http://marklogic.com/roxy/cpf\";>",

"  ",

""

  ],

  "operation": "xdmp:eval(\"(:
Copyright 2012 MarkLogic
Corporation

Licensed un...\", (), 12459739181686467876different-tr...)",

  "errorDatum": ""

},

{

  "whereURI": "/MarkLogic/appservices/qconsole/qconsole-amped.xqy",

  "errorline": "211",

  "errorcolumn": "4",

  "operation":
"amped-qconsole:qconsole-eval(\"(:
Copyright 2012 MarkLogic
Corporation

Licensed un...\", (), 12459739181686467876different-tr...)",

  "errorDatum": "",

  "code": [

"$xquery := \"(:
Copyright 2012 MarkLogic
Corporation

Licensed un...\"",

"$vars := ()",

"$options := 12459739181686467876different-tr..."

  ]

},

{

  "whereURI": "/MarkLogic/appservices/qconsole/qc-evaler.xqy",

  "errorline": "595",

  "errorcolumn": "12",

  "operation":
"qceval:do-eval(xs:unsignedLong(\"1763775169632162950\"),
document{text{\"(:
Copyright 2012 MarkLogic
Corporation

Licensed un...\"}}, \"\", 12459739181686467876different-tr...,
\"xquery\")",

  "errorDatum": "",

  "code": [

"$qid := xs:unsignedLong(\"1763775169632162950\")",

"$query := \"(:
Copyright 2012 MarkLogic
Corporation

Licensed un...\"",

"$wrappedQuery := \"\"",

"$options := 12459739181686467876different-tr...",

"$query-type := \"xquery\""

  ]

},

{

  "whereURI": "/qconsole/endpoints/evaler.xqy",

  "errorline": "87",

  "errorcolumn": "28",

  "operation": "",

  "errorDatum": "",

  "code": [

"$http-opts := http://marklogic.com/appservices/rest\";>",

"$set := ()",

"$params-map := map:map(http://www.w3.org/2001/XMLSchema\";
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\";
xmlns:map=\"http://marklogic.com/xdmp/map\";>1096...)",

"$action := \"eval\"",

"$qid := xs:unsignedLong(\"1763775169632162950\")",

"$wsid := xs:unsignedLong(\"10965177595049296257\")",

"$sid := ()",

"$dbid := xs:unsignedLong(\"12459739181686467876\")",

"$crid := \"\"",

"$query-type := \"xquery\"",

"$query-text := document{text{\"(:
Copyright 2012
MarkLogic Corporation

Licensed un...\"}}",

"$sql-query := \"import module namespace amped-qconsole =
"http://marklogic\"";,

"$sparql-query := \"import module namespace amped-qconsole
= "ht

Re: [MarkLogic Dev General] XDMP-PARENTLINK Error

2015-04-30 Thread Dave Cassel
I looked around a bit and the only references I found to this error also 
mention fragmentation. Do you have any Fragment Parents or Fragment Roots 
defined?

--
Dave Cassel, @dmcassel
Developer Community Manager
MarkLogic Corporation
Data Innovation Summit 
May 7th in DC


From: Prasanth N V R mailto:prasanth.nv...@gmail.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Thursday, April 30, 2015 at 7:58 AM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: [MarkLogic Dev General] XDMP-PARENTLINK Error

Hi,

I am getting XDMP-PARENTLINK error while doing cts:search.
cts:search(//users,
cts:and-query((

cts:element-range-query(xs:QName('user'),"=","MarklogicUser",("collation=http://marklogic.com/collation/codepoint";)),

cts:element-range-query(xs:QName('id'),"=","id415",("collation=http://marklogic.com/collation/codepoint";))
))
)

But when I try using cts:element-valules I got the results.
cts:element-values(
xs:QName('schemeid'),
(),
("limit=1", "collation=http://marklogic.com/collation/codepoint";),
cts:and-query((

cts:element-range-query(xs:QName('user'),"=","MarklogicUser",("collation=http://marklogic.com/collation/codepoint";)),

cts:element-range-query(xs:QName('id'),"=","id415",("collation=http://marklogic.com/collation/codepoint";))
))
)

The results are returned from the document 
"/mlusers/marklogicusers.com".
The doc-available is returning false. 
fn:doc-available("/mlusers/marklogicusers.com").

What is the XDMP-PARENTLINK error.
Please help me out.

Thanks,
Prasanth
___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


[MarkLogic Dev General] Deleting Reindexing for Deleted Field Value Searches

2015-04-30 Thread Shashidhar Rao
Hi,

Can somebody help me understand whether Marklogic will delete the fragments
of 'Reindexing for Deleted Field Value Searches' as I have marked it false
as I don't need it.

Details shown below where 2,036,180 indicates Fragments Remaining


Reindexing for Deleted Field Value Searches 2,036,180 n/a 49.6%.

I have seen that it has remained static at 49.6% and got stuck at this
point.

Will Marklogic delete these fragments and the disk space reclaimed while
re-indexing and merging?

Thanks
___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Deploy a javascript application

2015-04-30 Thread Dave Cassel
Check the browser console for errors. I've seen that happen before and I think 
it was a missing JS file reference or something like that. You should be seeing 
username and password text boxes in the upper right.

--
Dave Cassel, @dmcassel
Developer Community Manager
MarkLogic Corporation
Data Innovation Summit 
May 7th in DC


From: Geert Josten 
mailto:geert.jos...@marklogic.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Thursday, April 30, 2015 at 10:24 AM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Deploy a javascript application

Sounds like you didn’t do sudo npm install -g 
git://github.com/marklogic/slush-marklogic-node.git
Or didn’t rerun slush marklogic-node after that..

Kind regards,
Geert

From: Yinyan guy mailto:yinyan...@hotmail.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Thursday, April 30, 2015 at 4:08 PM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Deploy a javascript application

Thanks Greet. The app is now deployed. I can see the page displayed with Search 
bar and other links but on clicking the search button I am not able to retrieve 
the search results. I am getting the message "Please log in to see content" and 
there doesn't seem to be an option to login.
There are no errors in the gulp and gulp server consoles nor I am able to see 
the login screen.
I haven't modified any username.
Have I missed anything?
Any tips on how can I troubleshoot this?
regards,
Puneet


From: geert.jos...@marklogic.com
To: general@developer.marklogic.com
Date: Thu, 30 Apr 2015 12:35:51 +
Subject: Re: [MarkLogic Dev General] Deploy a javascript application

Hi Puneet,

If you didn’t generate a MarkLogic 8 project from the start, you will typically 
need two changes to make it bootstrap and deploy properly:

  *   change url-rewriter to /MarkLogic/rest-api/rewriter.xml in 
deploy/build.properties. You will need to rerun bootstrap after this
  *   remove the line with  from rest-api/config/properties.xml, 
after that deploy should run smoothly

I have opened a few PR’s on Roxy to smoothen such issues..

Cheers,
Geert

From: Yinyan guy mailto:yinyan...@hotmail.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Thursday, April 30, 2015 at 1:45 PM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Deploy a javascript application

HI Geert,
Thanks for your tip. As per the link below, I am using ML8 and i did choose the 
dev brand while initialized the slush framework.
But still I am not able to deploy modules using ./ml. I got an error ""ERROR: 
404 "Not Found"ERROR:""
I tried changing the version in deploy/build.properties to 8 but the error is 
same.
Are you aware of any other issue?
I am attaching my terminal output. Your inputs would be helpful.
regards,
Puneet

P.S. there were some errors on "No receipt for 
'com.apple.pkg.DeveloperToolsCLI' found at '/'." during the slush 
initialization which I ignored.

From: geert.jos...@marklogic.com
To: general@developer.marklogic.com
Date: Thu, 30 Apr 2015 09:22:54 +
Subject: Re: [MarkLogic Dev General] Deploy a javascript application

Hi Puneet,

We are very close to a new release for both Roxy and the slush template, but 
not there yet. If you proceed with installing slush-marklogic-node, I’d suggest 
following these hints for the moment:

https://github.com/marklogic/slush-marklogic-node/issues/68

Cheers,
Geert

From: Puneet Makwana mailto:yinyan...@hotmail.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Thursday, April 30, 2015 at 11:02 AM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Deploy a javascript application

Thanks Geert, David.
Your inputs are helpful, I would choose thin node.js with roxy approach.
Regards,
Puneet

--- Original Message ---

From: "Geert Josten" 
mailto:geert.jos...@marklogic.com>>
Sent: April 30, 2015 5:06 PM
To: "MarkLogic Developer Discussion" 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Deploy a javascript application

Hi Puneet,

If you are looking at using AngularJS for front-end, you don’t need to use 
NodeJS as middle-tier at all. You could potentially serve the AngularJS files 
as static files from MarkLogic itself, or serve them from any other web 
container you can think of. I have seen

[MarkLogic Dev General] Roxy 1.7.2 released

2015-04-30 Thread Paxton Hare
Roxy 1.7.2 is now available 
https://github.com/marklogic/roxy/releases/tag/v1.7.2

New Features

  *   #410 Test .sjs modules 
using SJS unit testing
  *   #404 Remove orphaned amps 
at wipe
  *   #397 Dynamically suppress 
error-format if ML8
  *   #395 Automatically adjust 
rewriter based on ml version
  *   #380 Ignore replica forests 
when bootstrapping to standalone
  *   #376 Suppressing prompts
  *   #375 Create ML8 Roxy release
  *   #374 RFE: show 
app_specific.rb methods in help output
  *   #371 Deploy modules not 
honoring modules root
  *   #366 Added bootstrap/wipe 
for internal replicas
  *   #365 Add howto command to 
show Roxy wiki pages
  *   #364 Suppress 
triggers/schemas in ml-config if eq modules
  *   #362 Support a new type of 
application for those which are neither REST nor MVC
  *   #359 Added separate mlcp 
user/pass properties
  *   #337 Adding roxy property to 
ignore certain files or folders
  *   #335 Raise exception to OS 
level for integratability
  *   #332 Make group support 
work for ML 5
  *   #330 Update ml new to 
select server-version 8 (and drop 4)
  *   #328 Add 
group/server/database settings to help
  *   #313 exposed validate 
command
  *   #312 added support for 
group and host properties, backwards compatible
  *   #231 separate deploy 
modules from rest extensions and transforms enhancement
  *   #223 Allow capturing 
modules for any app-type capture
  *   #78 Integrated with MLCP

Resolved Issues

  *   #428 JSON sending in the 
request body is not being converted into map:map in ML8
  *   #412 Update copyright
  *   #405 Make sure 
field-value-searches works at field level
  *   #400 Win8.1 ML7 Roxy rest 
problem
  *   #399 ML8 with Roxy on Win8.1
  *   #398 Ignore empty settings 
in version-check
  *   #391 Corb doesn't run 
against ML8
  *   #383 Reassigning replicas 
doesn't spread replicas
  *   #379 Replication forests 
not created once forests exists
  *   #378 Forest replication 
doesn't work unless forests-per-host
  *   #377 Deploy rest ignores 
.sjs extensions
  *   #370 deploy modules throws 
404 error after upgrade to ML8
  *   #369 Set exit code when 
setup:do-setup fails
  *   #361 Is granular replica 
forest configuration possible?
  *   #355 Sample ssl certificate 
fails
  *   #353 Capture configs is 
unable to capture users and roles when specified by name
  *   #348 ml-config.sample.xml 
causes roxy to not bootstrap app servers in dev branch
  *   #339 self-test is failing
  *   #336 ML8 doesn't support 
REST property error-format
  *   #334 MLCP path with spaces 
fails
  *   #333 ml script breaks in 
gitbash (Windows)
  *   #329 'filesystem' db 
created when when 'filesystem' is specified as the 'modules-db'?
  *   #324 Command line unit test 
(ml local test) fails with 404 not found error
  *   #323

Re: [MarkLogic Dev General] Deploy a javascript application

2015-04-30 Thread Yinyan guy
Thanks Paul. I didn't realize that this could be command line version of the 
C/C++ compilers . I will install Xcode.regards,Puneet

From: paul.hoe...@marklogic.com
To: general@developer.marklogic.com
Date: Thu, 30 Apr 2015 14:52:56 +
Subject: Re: [MarkLogic Dev General] Deploy a javascript application








You probably don’t have the command line tools installed.  In order to use some 
tools like NPM, you will need to install the command line development tools on 
a Mac.  These install a command line version of the C/C++ compilers which are 
used to build native
 extensions.



The easiest way to do this is probably to use the App Store to install Xcode 
and then use the Xcode settings to install the command line tools.  



You can tell if you have the command line tools by typing:
which clang



At the command prompt.  That will tell you if you have the command line tools.










Paul Hoehne
Senior Consultant
MarkLogic Corporation
paul.hoe...@marklogic.com
mobile: +1 571 830 4735
www.marklogic.com



Click http://po.st/hMGDFm to get your free NoSQL For Dummies e-book!








From: Yinyan guy 

Reply-To: MarkLogic Developer Discussion 

Date: Thursday, April 30, 2015 at 10:46 AM

To: MarkLogic Developer Discussion 

Subject: Re: [MarkLogic Dev General] Deploy a javascript application







Yes. It didn't work for me.
I tried creating a new project, I got following error

$ sudo npm install -g git://gethub.com/marklogic/slush-marklogic-node.git
Password:
npm ERR! 
git clone --template=/Users/pmakwana/.npm/_git-remotes/_templates --mirror 
git://gethub.com/marklogic/slush-marklogic-node.git 
/Users/pmakwana/.npm/_git-remotes/git-gethub-com-marklogic-slush-marklogic-node-git-36943c6f
npm ERR!git clone --template=/Users/pmakwana/.npm/_git-remotes/_templates 
--mirror git://gethub.com/marklogic/slush-marklogic-node.git 
/Users/pmakwana/.npm/_git-remotes/git-gethub-com-marklogic-slush-marklogic-node-git-36943c6f:
 xcode-select: note: no developer tools were found at 
'/Applications/Xcode.app', requesting install. Choose an option in the dialog 
to download the command line developer tools.
npm ERR! Darwin 13.4.0
npm ERR! 
argv "node" "/usr/local/bin/npm" "install" "-g" 
"git://gethub.com/marklogic/slush-marklogic-node.git"
npm ERR! 
node v0.12.2
npm ERR! 
npm  v2.7.4
npm ERR! 
code 1



npm ERR! Command failed: git clone 
--template=/Users/pmakwana/.npm/_git-remotes/_templates --mirror 
git://gethub.com/marklogic/slush-marklogic-node.git 
/Users/pmakwana/.npm/_git-remotes/git-gethub-com-marklogic-slush-marklogic-node-git-36943c6f
npm ERR! xcode-select: note: no developer tools were found at 
'/Applications/Xcode.app', requesting install. Choose an option in the dialog 
to download the command line developer tools.
npm ERR! 
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR! 



npm ERR! Please include the following file with any support request:
npm ERR! /Users/pmakwana/MyWork/npm-debug.log



I ignored the installation dialog for Xcode. Should I manually replace the 
libraries?
regards,
Puneet




From: geert.jos...@marklogic.com

To: general@developer.marklogic.com

Date: Thu, 30 Apr 2015 14:24:33 +

Subject: Re: [MarkLogic Dev General] Deploy a javascript application



Sounds like you didn’t do sudo
 npm install -g git://github.com/marklogic/slush-marklogic-node.git
Or didn’t rerun slush marklogic-node after that..



Kind regards,
Geert





From: Yinyan guy 

Reply-To: MarkLogic Developer Discussion 

Date: Thursday, April 30, 2015 at 4:08 PM

To: MarkLogic Developer Discussion 

Subject: Re: [MarkLogic Dev General] Deploy a javascript application







Thanks Greet. The app is now deployed. I can see the page displayed with Search 
bar and other links but on clicking the search button I am not able to retrieve 
the search results. I am getting the message "Please log in to see content" and 
there
 doesn't seem to be an option to login.
There are no errors in the gulp and gulp server consoles nor I am able to see 
the login screen.
I haven't modified any username.
Have I missed anything?
Any tips on how can I troubleshoot this?
regards,
Puneet





From: geert.jos...@marklogic.com

To: general@developer.marklogic.com

Date: Thu, 30 Apr 2015 12:35:51 +

Subject: Re: [MarkLogic Dev General] Deploy a javascript application



Hi Puneet,



If you didn’t generate a MarkLogic 8 project from the start, you will typically 
need two changes to make it bootstrap and deploy properly:

change url-rewriter to /MarkLogic/rest-api/rewriter.xml in 
deploy/build.properties. You will need to rerun bootstrap after thisremove the 
line with  from rest-api/config/properties.xml, after that deploy 
should run smoothly
I have opened a few PR’s on Roxy to smoothen such issues..



Cheers,
Geert





From: Yinyan guy 

Reply-To: MarkLogic Developer Discussion 

Date: Thursday, April 30, 2015 at 1:45 PM

To: MarkLogic Developer Discussion 


Re: [MarkLogic Dev General] Deploy a javascript application

2015-04-30 Thread Paul Hoehne
You probably don’t have the command line tools installed.  In order to use some 
tools like NPM, you will need to install the command line development tools on 
a Mac.  These install a command line version of the C/C++ compilers which are 
used to build native extensions.

The easiest way to do this is probably to use the App Store to install Xcode 
and then use the Xcode settings to install the command line tools.

You can tell if you have the command line tools by typing:
which clang

At the command prompt.  That will tell you if you have the command line tools.



Paul Hoehne
Senior Consultant
MarkLogic Corporation
paul.hoe...@marklogic.com
mobile: +1 571 830 4735
www.marklogic.com

Click http://po.st/hMGDFm to get your free NoSQL For Dummies e-book!

From: Yinyan guy mailto:yinyan...@hotmail.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Thursday, April 30, 2015 at 10:46 AM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Deploy a javascript application

Yes. It didn't work for me.
I tried creating a new project, I got following error

$ sudo npm install -g git://gethub.com/marklogic/slush-marklogic-node.git

Password:

npm ERR! git clone --template=/Users/pmakwana/.npm/_git-remotes/_templates 
--mirror git://gethub.com/marklogic/slush-marklogic-node.git 
/Users/pmakwana/.npm/_git-remotes/git-gethub-com-marklogic-slush-marklogic-node-git-36943c6f

npm ERR!git clone --template=/Users/pmakwana/.npm/_git-remotes/_templates 
--mirror git://gethub.com/marklogic/slush-marklogic-node.git 
/Users/pmakwana/.npm/_git-remotes/git-gethub-com-marklogic-slush-marklogic-node-git-36943c6f:
 xcode-select: note: no developer tools were found at 
'/Applications/Xcode.app', requesting install. Choose an option in the dialog 
to download the command line developer tools.

npm ERR! Darwin 13.4.0

npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" 
"git://gethub.com/marklogic/slush-marklogic-node.git"

npm ERR! node v0.12.2

npm ERR! npm  v2.7.4

npm ERR! code 1


npm ERR! Command failed: git clone 
--template=/Users/pmakwana/.npm/_git-remotes/_templates --mirror 
git://gethub.com/marklogic/slush-marklogic-node.git 
/Users/pmakwana/.npm/_git-remotes/git-gethub-com-marklogic-slush-marklogic-node-git-36943c6f

npm ERR! xcode-select: note: no developer tools were found at 
'/Applications/Xcode.app', requesting install. Choose an option in the dialog 
to download the command line developer tools.

npm ERR!

npm ERR!

npm ERR! If you need help, you may report this error at:

npm ERR! 


npm ERR! Please include the following file with any support request:

npm ERR! /Users/pmakwana/MyWork/npm-debug.log


I ignored the installation dialog for Xcode. Should I manually replace the 
libraries?

regards,

Puneet


From: geert.jos...@marklogic.com
To: general@developer.marklogic.com
Date: Thu, 30 Apr 2015 14:24:33 +
Subject: Re: [MarkLogic Dev General] Deploy a javascript application

Sounds like you didn’t do sudo npm install -g 
git://github.com/marklogic/slush-marklogic-node.git
Or didn’t rerun slush marklogic-node after that..

Kind regards,
Geert

From: Yinyan guy mailto:yinyan...@hotmail.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Thursday, April 30, 2015 at 4:08 PM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Deploy a javascript application

Thanks Greet. The app is now deployed. I can see the page displayed with Search 
bar and other links but on clicking the search button I am not able to retrieve 
the search results. I am getting the message "Please log in to see content" and 
there doesn't seem to be an option to login.
There are no errors in the gulp and gulp server consoles nor I am able to see 
the login screen.
I haven't modified any username.
Have I missed anything?
Any tips on how can I troubleshoot this?
regards,
Puneet


From: geert.jos...@marklogic.com
To: general@developer.marklogic.com
Date: Thu, 30 Apr 2015 12:35:51 +
Subject: Re: [MarkLogic Dev General] Deploy a javascript application

Hi Puneet,

If you didn’t generate a MarkLogic 8 project from the start, you will typically 
need two changes to make it bootstrap and deploy properly:

  *   change url-rewriter to /MarkLogic/rest-api/rewriter.xml in 
deploy/build.properties. You will need to rerun bootstrap after this
  *   remove the line with  from rest-api/config/properties.xml, 
after that deploy should run smoothly

I have opened a few PR’s on Roxy to smoothen such issues..

Cheers,
Geert

From: Yinyan guy mailto:yinyan...@hotmail.com>>
Reply-To: MarkLogic Develope

Re: [MarkLogic Dev General] Deploy a javascript application

2015-04-30 Thread Geert Josten
There is a typo in the command line. You have gethub, which should be github. 
Maybe that was the issue?

You may get warnings about Xcode on a Mac during npm install I think, but you 
can ignore that..

Cheers,
Geert

From: Yinyan guy mailto:yinyan...@hotmail.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Thursday, April 30, 2015 at 4:46 PM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Deploy a javascript application

Yes. It didn't work for me.
I tried creating a new project, I got following error

$ sudo npm install -g git://gethub.com/marklogic/slush-marklogic-node.git

Password:

npm ERR! git clone --template=/Users/pmakwana/.npm/_git-remotes/_templates 
--mirror git://gethub.com/marklogic/slush-marklogic-node.git 
/Users/pmakwana/.npm/_git-remotes/git-gethub-com-marklogic-slush-marklogic-node-git-36943c6f

npm ERR!git clone --template=/Users/pmakwana/.npm/_git-remotes/_templates 
--mirror git://gethub.com/marklogic/slush-marklogic-node.git 
/Users/pmakwana/.npm/_git-remotes/git-gethub-com-marklogic-slush-marklogic-node-git-36943c6f:
 xcode-select: note: no developer tools were found at 
'/Applications/Xcode.app', requesting install. Choose an option in the dialog 
to download the command line developer tools.

npm ERR! Darwin 13.4.0

npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" 
"git://gethub.com/marklogic/slush-marklogic-node.git"

npm ERR! node v0.12.2

npm ERR! npm  v2.7.4

npm ERR! code 1


npm ERR! Command failed: git clone 
--template=/Users/pmakwana/.npm/_git-remotes/_templates --mirror 
git://gethub.com/marklogic/slush-marklogic-node.git 
/Users/pmakwana/.npm/_git-remotes/git-gethub-com-marklogic-slush-marklogic-node-git-36943c6f

npm ERR! xcode-select: note: no developer tools were found at 
'/Applications/Xcode.app', requesting install. Choose an option in the dialog 
to download the command line developer tools.

npm ERR!

npm ERR!

npm ERR! If you need help, you may report this error at:

npm ERR! 


npm ERR! Please include the following file with any support request:

npm ERR! /Users/pmakwana/MyWork/npm-debug.log


I ignored the installation dialog for Xcode. Should I manually replace the 
libraries?

regards,

Puneet


From: geert.jos...@marklogic.com
To: general@developer.marklogic.com
Date: Thu, 30 Apr 2015 14:24:33 +
Subject: Re: [MarkLogic Dev General] Deploy a javascript application

Sounds like you didn’t do sudo npm install -g 
git://github.com/marklogic/slush-marklogic-node.git
Or didn’t rerun slush marklogic-node after that..

Kind regards,
Geert

From: Yinyan guy mailto:yinyan...@hotmail.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Thursday, April 30, 2015 at 4:08 PM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Deploy a javascript application

Thanks Greet. The app is now deployed. I can see the page displayed with Search 
bar and other links but on clicking the search button I am not able to retrieve 
the search results. I am getting the message "Please log in to see content" and 
there doesn't seem to be an option to login.
There are no errors in the gulp and gulp server consoles nor I am able to see 
the login screen.
I haven't modified any username.
Have I missed anything?
Any tips on how can I troubleshoot this?
regards,
Puneet


From: geert.jos...@marklogic.com
To: general@developer.marklogic.com
Date: Thu, 30 Apr 2015 12:35:51 +
Subject: Re: [MarkLogic Dev General] Deploy a javascript application

Hi Puneet,

If you didn’t generate a MarkLogic 8 project from the start, you will typically 
need two changes to make it bootstrap and deploy properly:

  *   change url-rewriter to /MarkLogic/rest-api/rewriter.xml in 
deploy/build.properties. You will need to rerun bootstrap after this
  *   remove the line with  from rest-api/config/properties.xml, 
after that deploy should run smoothly

I have opened a few PR’s on Roxy to smoothen such issues..

Cheers,
Geert

From: Yinyan guy mailto:yinyan...@hotmail.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Thursday, April 30, 2015 at 1:45 PM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Deploy a javascript application

HI Geert,
Thanks for your tip. As per the link below, I am using ML8 and i did choose the 
dev brand while initialized the slush framework.
But still I am not able to deploy modules using ./ml. I got an error ""ERROR: 
404 "Not Found"ERROR:""
I tried changing the version in deploy/build.properties to 8

Re: [MarkLogic Dev General] Deploy a javascript application

2015-04-30 Thread Yinyan guy
Yes. It didn't work for me.I tried creating a new project, I got following error







$ sudo npm install -g git://gethub.com/marklogic/slush-marklogic-node.git
Password:
npm ERR! git clone --template=/Users/pmakwana/.npm/_git-remotes/_templates 
--mirror git://gethub.com/marklogic/slush-marklogic-node.git 
/Users/pmakwana/.npm/_git-remotes/git-gethub-com-marklogic-slush-marklogic-node-git-36943c6f
npm ERR! git clone --template=/Users/pmakwana/.npm/_git-remotes/_templates 
--mirror git://gethub.com/marklogic/slush-marklogic-node.git 
/Users/pmakwana/.npm/_git-remotes/git-gethub-com-marklogic-slush-marklogic-node-git-36943c6f:
 xcode-select: note: no developer tools were found at 
'/Applications/Xcode.app', requesting install. Choose an option in the dialog 
to download the command line developer tools.
npm ERR! Darwin 13.4.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" 
"git://gethub.com/marklogic/slush-marklogic-node.git"
npm ERR! node v0.12.2
npm ERR! npm  v2.7.4
npm ERR! code 1


npm ERR! Command failed: git clone 
--template=/Users/pmakwana/.npm/_git-remotes/_templates --mirror 
git://gethub.com/marklogic/slush-marklogic-node.git 
/Users/pmakwana/.npm/_git-remotes/git-gethub-com-marklogic-slush-marklogic-node-git-36943c6f
npm ERR! xcode-select: note: no developer tools were found at 
'/Applications/Xcode.app', requesting install. Choose an option in the dialog 
to download the command line developer tools.
npm ERR! 
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR! 


npm ERR! Please include the following file with any support request:
npm ERR! /Users/pmakwana/MyWork/npm-debug.log
I ignored the installation dialog for Xcode. Should I manually replace the 
libraries?regards,Puneet
From: geert.jos...@marklogic.com
To: general@developer.marklogic.com
Date: Thu, 30 Apr 2015 14:24:33 +
Subject: Re: [MarkLogic Dev General] Deploy a javascript application






Sounds like you didn’t do sudo
 npm install -g git://github.com/marklogic/slush-marklogic-node.git
Or didn’t rerun slush marklogic-node after that..



Kind regards,
Geert





From: Yinyan guy 

Reply-To: MarkLogic Developer Discussion 

Date: Thursday, April 30, 2015 at 4:08 PM

To: MarkLogic Developer Discussion 

Subject: Re: [MarkLogic Dev General] Deploy a javascript application







Thanks Greet. The app is now deployed. I can see the page displayed with Search 
bar and other links but on clicking the search button I am not able to retrieve 
the search results. I am getting the message "Please log in to see content" and 
there
 doesn't seem to be an option to login.
There are no errors in the gulp and gulp server consoles nor I am able to see 
the login screen.
I haven't modified any username.
Have I missed anything?
Any tips on how can I troubleshoot this?
regards,
Puneet





From: geert.jos...@marklogic.com

To: general@developer.marklogic.com

Date: Thu, 30 Apr 2015 12:35:51 +

Subject: Re: [MarkLogic Dev General] Deploy a javascript application



Hi Puneet,



If you didn’t generate a MarkLogic 8 project from the start, you will typically 
need two changes to make it bootstrap and deploy properly:

change url-rewriter to /MarkLogic/rest-api/rewriter.xml in 
deploy/build.properties. You will need to rerun bootstrap after thisremove the 
line with  from rest-api/config/properties.xml, after that deploy 
should run smoothly
I have opened a few PR’s on Roxy to smoothen such issues..



Cheers,
Geert





From: Yinyan guy 

Reply-To: MarkLogic Developer Discussion 

Date: Thursday, April 30, 2015 at 1:45 PM

To: MarkLogic Developer Discussion 

Subject: Re: [MarkLogic Dev General] Deploy a javascript application







HI Geert,
Thanks for your tip. As per the link below, I am using ML8 and i did choose the 
dev brand while initialized the slush framework.
But still I am not able to deploy modules using ./ml. I got an error ""ERROR: 
404 "Not Found"ERROR:"" 

I tried changing the version in deploy/build.properties to 8 but the error is 
same.
Are you aware of any other issue?
I am attaching my terminal output. Your inputs would be helpful.
regards,
Puneet



P.S. there were some errors on "No receipt for 
'com.apple.pkg.DeveloperToolsCLI' found at '/'." during the slush 
initialization which I ignored.



From: geert.jos...@marklogic.com

To: general@developer.marklogic.com

Date: Thu, 30 Apr 2015 09:22:54 +

Subject: Re: [MarkLogic Dev General] Deploy a javascript application



Hi Puneet,



We are very close to a new release for both Roxy and the slush template, but 
not there yet. If you proceed with installing slush-marklogic-node, I’d suggest 
following these hints for the moment:



https://github.com/marklogic/slush-marklogic-node/issues/68



Cheers,
Geert





From: Puneet Makwana 

Reply-To: MarkLogic Developer Discussion 

Date: Thursday, April 30, 2015 at 11:02 AM

To: MarkLogic Developer Discussion 

Subject: Re: [MarkLogic Dev General]

Re: [MarkLogic Dev General] Deploy a javascript application

2015-04-30 Thread Geert Josten
Sounds like you didn’t do sudo npm install -g 
git://github.com/marklogic/slush-marklogic-node.git
Or didn’t rerun slush marklogic-node after that..

Kind regards,
Geert

From: Yinyan guy mailto:yinyan...@hotmail.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Thursday, April 30, 2015 at 4:08 PM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Deploy a javascript application

Thanks Greet. The app is now deployed. I can see the page displayed with Search 
bar and other links but on clicking the search button I am not able to retrieve 
the search results. I am getting the message "Please log in to see content" and 
there doesn't seem to be an option to login.
There are no errors in the gulp and gulp server consoles nor I am able to see 
the login screen.
I haven't modified any username.
Have I missed anything?
Any tips on how can I troubleshoot this?
regards,
Puneet


From: geert.jos...@marklogic.com
To: general@developer.marklogic.com
Date: Thu, 30 Apr 2015 12:35:51 +
Subject: Re: [MarkLogic Dev General] Deploy a javascript application

Hi Puneet,

If you didn’t generate a MarkLogic 8 project from the start, you will typically 
need two changes to make it bootstrap and deploy properly:

  *   change url-rewriter to /MarkLogic/rest-api/rewriter.xml in 
deploy/build.properties. You will need to rerun bootstrap after this
  *   remove the line with  from rest-api/config/properties.xml, 
after that deploy should run smoothly

I have opened a few PR’s on Roxy to smoothen such issues..

Cheers,
Geert

From: Yinyan guy mailto:yinyan...@hotmail.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Thursday, April 30, 2015 at 1:45 PM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Deploy a javascript application

HI Geert,
Thanks for your tip. As per the link below, I am using ML8 and i did choose the 
dev brand while initialized the slush framework.
But still I am not able to deploy modules using ./ml. I got an error ""ERROR: 
404 "Not Found"ERROR:""
I tried changing the version in deploy/build.properties to 8 but the error is 
same.
Are you aware of any other issue?
I am attaching my terminal output. Your inputs would be helpful.
regards,
Puneet

P.S. there were some errors on "No receipt for 
'com.apple.pkg.DeveloperToolsCLI' found at '/'." during the slush 
initialization which I ignored.

From: geert.jos...@marklogic.com
To: general@developer.marklogic.com
Date: Thu, 30 Apr 2015 09:22:54 +
Subject: Re: [MarkLogic Dev General] Deploy a javascript application

Hi Puneet,

We are very close to a new release for both Roxy and the slush template, but 
not there yet. If you proceed with installing slush-marklogic-node, I’d suggest 
following these hints for the moment:

https://github.com/marklogic/slush-marklogic-node/issues/68

Cheers,
Geert

From: Puneet Makwana mailto:yinyan...@hotmail.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Thursday, April 30, 2015 at 11:02 AM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Deploy a javascript application

Thanks Geert, David.
Your inputs are helpful, I would choose thin node.js with roxy approach.
Regards,
Puneet

--- Original Message ---

From: "Geert Josten" 
mailto:geert.jos...@marklogic.com>>
Sent: April 30, 2015 5:06 PM
To: "MarkLogic Developer Discussion" 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Deploy a javascript application

Hi Puneet,

If you are looking at using AngularJS for front-end, you don’t need to use 
NodeJS as middle-tier at all. You could potentially serve the AngularJS files 
as static files from MarkLogic itself, or serve them from any other web 
container you can think of. I have seen cases where AngularJS was served from a 
Java-tier using Jetty and Tomcat.

Regarding separate web/app server: if you push your static files inside the 
REST-api modules database, you will have to use app-level authentication, 
otherwise you won’t be able to even show a simple login screen. Unless you 
would be happy to use the old fashion HTTP auth dialog from the browser.

There are two reference project that both use AngularJS as front-end, and 
MarkLogic REST-api as back-end. I suggest taking a look at these:

  *   Samplestack: https://github.com/marklogic/marklogic-samplestack, mostly 
Java-oriented, and uses Gradle for deployment
  *   Slush-marklogic-node: https://github.com/marklogic/slush-marklogic-node, 
no Java, thin NodeJs middle-tier, and uses Roxy 
(https://github.com/m

Re: [MarkLogic Dev General] Deploy a javascript application

2015-04-30 Thread Yinyan guy
Thanks Greet. The app is now deployed. I can see the page displayed with Search 
bar and other links but on clicking the search button I am not able to retrieve 
the search results. I am getting the message "Please log in to see content" and 
there doesn't seem to be an option to login.There are no errors in the gulp and 
gulp server consoles nor I am able to see the login screen.I haven't modified 
any username.Have I missed anything?Any tips on how can I troubleshoot 
this?regards,Puneet

From: geert.jos...@marklogic.com
To: general@developer.marklogic.com
Date: Thu, 30 Apr 2015 12:35:51 +
Subject: Re: [MarkLogic Dev General] Deploy a javascript application






Hi Puneet,



If you didn’t generate a MarkLogic 8 project from the start, you will typically 
need two changes to make it bootstrap and deploy properly:

change url-rewriter to /MarkLogic/rest-api/rewriter.xml in 
deploy/build.properties. You will need to rerun bootstrap after thisremove the 
line with  from rest-api/config/properties.xml, after that deploy 
should run smoothly
I have opened a few PR’s on Roxy to smoothen such issues..



Cheers,
Geert





From: Yinyan guy 

Reply-To: MarkLogic Developer Discussion 

Date: Thursday, April 30, 2015 at 1:45 PM

To: MarkLogic Developer Discussion 

Subject: Re: [MarkLogic Dev General] Deploy a javascript application







HI Geert,
Thanks for your tip. As per the link below, I am using ML8 and i did choose the 
dev brand while initialized the slush framework.
But still I am not able to deploy modules using ./ml. I got an error ""ERROR: 
404 "Not Found"ERROR:"" 

I tried changing the version in deploy/build.properties to 8 but the error is 
same.
Are you aware of any other issue?
I am attaching my terminal output. Your inputs would be helpful.
regards,
Puneet



P.S. there were some errors on "No receipt for 
'com.apple.pkg.DeveloperToolsCLI' found at '/'." during the slush 
initialization which I ignored.



From: geert.jos...@marklogic.com

To: general@developer.marklogic.com

Date: Thu, 30 Apr 2015 09:22:54 +

Subject: Re: [MarkLogic Dev General] Deploy a javascript application



Hi Puneet,



We are very close to a new release for both Roxy and the slush template, but 
not there yet. If you proceed with installing slush-marklogic-node, I’d suggest 
following these hints for the moment:



https://github.com/marklogic/slush-marklogic-node/issues/68



Cheers,
Geert





From: Puneet Makwana 

Reply-To: MarkLogic Developer Discussion 

Date: Thursday, April 30, 2015 at 11:02 AM

To: MarkLogic Developer Discussion 

Subject: Re: [MarkLogic Dev General] Deploy a javascript application







Thanks Geert, David. 

Your inputs are helpful, I would choose thin node.js with roxy approach. 

Regards, 

Puneet 



--- Original Message ---



From: "Geert Josten" 

Sent: April 30, 2015 5:06 PM

To: "MarkLogic Developer Discussion" 

Subject: Re: [MarkLogic Dev General] Deploy a javascript application





Hi Puneet,



If you are looking at using AngularJS for front-end, you don’t need to use 
NodeJS as middle-tier at all. You could potentially serve the AngularJS files 
as static files from MarkLogic itself, or serve them from any other web 
container you can think of.
 I have seen cases where AngularJS was served from a Java-tier using Jetty and 
Tomcat.



Regarding separate web/app server: if you push your static files inside the 
REST-api modules database, you will have to use app-level authentication, 
otherwise you won’t be able to even show a simple login screen. Unless you 
would be happy to use the old
 fashion HTTP auth dialog from the browser.



There are two reference project that both use AngularJS as front-end, and 
MarkLogic REST-api as back-end. I suggest taking a look at these:

Samplestack: https://github.com/marklogic/marklogic-samplestack, mostly 
Java-oriented, and uses Gradle for deploymentSlush-marklogic-node: 
https://github.com/marklogic/slush-marklogic-node, no Java, thin NodeJs 
middle-tier, and uses Roxy (https://github.com/marklogic/roxy)
 for deployment
Samplestack is meant as a show case app. The slush template is intended as a 
skeleton to quickly ramp up new projects. There are other examples out there as 
well, like this World Match demo https://github.com/jojrg/wm14,
 which uses Java and Spring Boot, and Jquery, though fitting in AngularJS 
wouldn’t be difficult..



Kind regards,
Geert





From: Yinyan guy 

Reply-To: MarkLogic Developer Discussion 

Date: Thursday, April 30, 2015 at 8:51 AM

To: "general@developer.marklogic.com" 

Subject: [MarkLogic Dev General] Deploy a javascript application







Hi All,
I have  basic question on deployment of a simple application. I am planning to 
write the application using angularJS and wanted to know what is the best 
option for the deployment of this application. I have following questions



1. is it mandatory to use node.js for the mid tier?
2. Can I deploy the Angular.JS application which would use REST API

Re: [MarkLogic Dev General] SEARCH-BADORDERBY

2015-04-30 Thread Indrajeet Verma
Thank you Danny for your detailed explanation!

Regards,
Indy

On Thu, Apr 30, 2015 at 6:25 PM, Danny Sinang  wrote:

> Hi Indy,
>
> We ran into the same problems after we upgraded to ML8.
>
> That forced us to create the necessary indexes and also make sure that we
> don't specify a "collation" attribute if the sortby index is not of type
> string.
>
> Also, if the index is of type int, you should use "xs:int", not
> "xs:integer" for sort-order/@type.
>
> Regards,
> Danny
>
>
> On Thu, Apr 30, 2015 at 2:16 AM, Indrajeet Verma <
> indrajeet.ve...@gmail.com> wrote:
>
>> Hi Joe Bryan,
>>
>> Thank you for your suggestions!
>>
>> The same code was working in ML6 without any error however this is
>> showing exception in ML8 as SEARCH-BADORDERBY.
>>
>> So is it mandatory in ML8 but not in ML6? However going through the
>> documentations, it suggests the range index must be there even in ML6.
>>
>> Regards,
>> Indrajeet
>>
>> On Thu, Apr 30, 2015 at 11:01 AM, Joe Bryan 
>> wrote:
>>
>>>  Hi Indrajeet,
>>>
>>>  The documentation you linked is for optimizing "order by" clauses in
>>> XQuery. The  element is part of the Search API query options,
>>> which are documented here:
>>> http://docs.marklogic.com/search:search?q=search:search&v=8.0&api=true#opt-sort-order
>>>
>>>  Thanks.
>>>
>>>  -jb
>>>
>>>   From: Indrajeet Verma 
>>> Reply-To: MarkLogic Developer Discussion <
>>> general@developer.marklogic.com>
>>> Date: Thursday, April 30, 2015 at 1:24 AM
>>> To: MarkLogic Developer Discussion 
>>> Subject: [MarkLogic Dev General] SEARCH-BADORDERBY
>>>
>>>   Hi,
>>>
>>>  I was having issues in ML8 as SEARCH-BADORDERBY: (err:FOER)
>>> Indexes are required to support element, element-attribute, json-property,
>>> or field sort specifications.
>>>
>>>  So I created range index for the element "name" as It was being used
>>> in 
>>>
>>>  I just wanted to confirm whether range index are mandatory in ML8 for
>>> the elements that we use in  as a search option.
>>>
>>>  I have gone through the link as well for the documentation and I did
>>> not see that the error will be thrown in case indexes will not present.
>>> Please let me know if I am missing anything.
>>>
>>>  https://docs.marklogic.com/guide/performance/order_by#id_29515
>>>
>>> Thank you for your help.
>>>
>>>  Regards,
>>> Indy
>>>
>>> ___
>>> General mailing list
>>> General@developer.marklogic.com
>>> Manage your subscription at:
>>> http://developer.marklogic.com/mailman/listinfo/general
>>>
>>>
>>
>> ___
>> General mailing list
>> General@developer.marklogic.com
>> Manage your subscription at:
>> http://developer.marklogic.com/mailman/listinfo/general
>>
>>
>
> ___
> General mailing list
> General@developer.marklogic.com
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
>
___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] SEARCH-BADORDERBY

2015-04-30 Thread Danny Sinang
Hi Indy,

We ran into the same problems after we upgraded to ML8.

That forced us to create the necessary indexes and also make sure that we
don't specify a "collation" attribute if the sortby index is not of type
string.

Also, if the index is of type int, you should use "xs:int", not
"xs:integer" for sort-order/@type.

Regards,
Danny


On Thu, Apr 30, 2015 at 2:16 AM, Indrajeet Verma 
wrote:

> Hi Joe Bryan,
>
> Thank you for your suggestions!
>
> The same code was working in ML6 without any error however this is showing
> exception in ML8 as SEARCH-BADORDERBY.
>
> So is it mandatory in ML8 but not in ML6? However going through the
> documentations, it suggests the range index must be there even in ML6.
>
> Regards,
> Indrajeet
>
> On Thu, Apr 30, 2015 at 11:01 AM, Joe Bryan 
> wrote:
>
>>  Hi Indrajeet,
>>
>>  The documentation you linked is for optimizing "order by" clauses in
>> XQuery. The  element is part of the Search API query options,
>> which are documented here:
>> http://docs.marklogic.com/search:search?q=search:search&v=8.0&api=true#opt-sort-order
>>
>>  Thanks.
>>
>>  -jb
>>
>>   From: Indrajeet Verma 
>> Reply-To: MarkLogic Developer Discussion > >
>> Date: Thursday, April 30, 2015 at 1:24 AM
>> To: MarkLogic Developer Discussion 
>> Subject: [MarkLogic Dev General] SEARCH-BADORDERBY
>>
>>   Hi,
>>
>>  I was having issues in ML8 as SEARCH-BADORDERBY: (err:FOER) Indexes
>> are required to support element, element-attribute, json-property, or field
>> sort specifications.
>>
>>  So I created range index for the element "name" as It was being used in
>> 
>>
>>  I just wanted to confirm whether range index are mandatory in ML8 for
>> the elements that we use in  as a search option.
>>
>>  I have gone through the link as well for the documentation and I did
>> not see that the error will be thrown in case indexes will not present.
>> Please let me know if I am missing anything.
>>
>>  https://docs.marklogic.com/guide/performance/order_by#id_29515
>>
>> Thank you for your help.
>>
>>  Regards,
>> Indy
>>
>> ___
>> General mailing list
>> General@developer.marklogic.com
>> Manage your subscription at:
>> http://developer.marklogic.com/mailman/listinfo/general
>>
>>
>
> ___
> General mailing list
> General@developer.marklogic.com
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
>
___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Deploy a javascript application

2015-04-30 Thread Geert Josten
Hi Puneet,

If you didn’t generate a MarkLogic 8 project from the start, you will typically 
need two changes to make it bootstrap and deploy properly:

  *   change url-rewriter to /MarkLogic/rest-api/rewriter.xml in 
deploy/build.properties. You will need to rerun bootstrap after this
  *   remove the line with  from rest-api/config/properties.xml, 
after that deploy should run smoothly

I have opened a few PR’s on Roxy to smoothen such issues..

Cheers,
Geert

From: Yinyan guy mailto:yinyan...@hotmail.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Thursday, April 30, 2015 at 1:45 PM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Deploy a javascript application

HI Geert,
Thanks for your tip. As per the link below, I am using ML8 and i did choose the 
dev brand while initialized the slush framework.
But still I am not able to deploy modules using ./ml. I got an error ""ERROR: 
404 "Not Found"ERROR:""
I tried changing the version in deploy/build.properties to 8 but the error is 
same.
Are you aware of any other issue?
I am attaching my terminal output. Your inputs would be helpful.
regards,
Puneet

P.S. there were some errors on "No receipt for 
'com.apple.pkg.DeveloperToolsCLI' found at '/'." during the slush 
initialization which I ignored.

From: geert.jos...@marklogic.com
To: general@developer.marklogic.com
Date: Thu, 30 Apr 2015 09:22:54 +
Subject: Re: [MarkLogic Dev General] Deploy a javascript application

Hi Puneet,

We are very close to a new release for both Roxy and the slush template, but 
not there yet. If you proceed with installing slush-marklogic-node, I’d suggest 
following these hints for the moment:

https://github.com/marklogic/slush-marklogic-node/issues/68

Cheers,
Geert

From: Puneet Makwana mailto:yinyan...@hotmail.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Thursday, April 30, 2015 at 11:02 AM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Deploy a javascript application

Thanks Geert, David.
Your inputs are helpful, I would choose thin node.js with roxy approach.
Regards,
Puneet

--- Original Message ---

From: "Geert Josten" 
mailto:geert.jos...@marklogic.com>>
Sent: April 30, 2015 5:06 PM
To: "MarkLogic Developer Discussion" 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Deploy a javascript application

Hi Puneet,

If you are looking at using AngularJS for front-end, you don’t need to use 
NodeJS as middle-tier at all. You could potentially serve the AngularJS files 
as static files from MarkLogic itself, or serve them from any other web 
container you can think of. I have seen cases where AngularJS was served from a 
Java-tier using Jetty and Tomcat.

Regarding separate web/app server: if you push your static files inside the 
REST-api modules database, you will have to use app-level authentication, 
otherwise you won’t be able to even show a simple login screen. Unless you 
would be happy to use the old fashion HTTP auth dialog from the browser.

There are two reference project that both use AngularJS as front-end, and 
MarkLogic REST-api as back-end. I suggest taking a look at these:

  *   Samplestack: https://github.com/marklogic/marklogic-samplestack, mostly 
Java-oriented, and uses Gradle for deployment
  *   Slush-marklogic-node: https://github.com/marklogic/slush-marklogic-node, 
no Java, thin NodeJs middle-tier, and uses Roxy 
(https://github.com/marklogic/roxy) for deployment

Samplestack is meant as a show case app. The slush template is intended as a 
skeleton to quickly ramp up new projects. There are other examples out there as 
well, like this World Match demo https://github.com/jojrg/wm14, which uses Java 
and Spring Boot, and Jquery, though fitting in AngularJS wouldn’t be difficult..

Kind regards,
Geert

From: Yinyan guy mailto:yinyan...@hotmail.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Thursday, April 30, 2015 at 8:51 AM
To: "general@developer.marklogic.com" 
mailto:general@developer.marklogic.com>>
Subject: [MarkLogic Dev General] Deploy a javascript application

Hi All,
I have  basic question on deployment of a simple application. I am planning to 
write the application using angularJS and wanted to know what is the best 
option for the deployment of this application. I have following questions

1. is it mandatory to use node.js for the mid tier?
2. Can I deploy the Angular.JS application which would use REST APIs using the 
Marklogic HTTP server?
3. is a separate web/app server the best option?

Thank You.
regards,
Puneet


___ General mailing list 
G

[MarkLogic Dev General] XDMP-PARENTLINK Error

2015-04-30 Thread Prasanth N V R
Hi,

I am getting XDMP-PARENTLINK error while doing cts:search.
cts:search(//users,
cts:and-query((

cts:element-range-query(xs:QName('user'),"=","MarklogicUser",("collation=
http://marklogic.com/collation/codepoint";)),
cts:element-range-query(xs:QName('id'),"=","id415",("collation=
http://marklogic.com/collation/codepoint";))
))
)

But when I try using cts:element-valules I got the results.
cts:element-values(
xs:QName('schemeid'),
(),
("limit=1", "collation=http://marklogic.com/collation/codepoint";),
cts:and-query((

cts:element-range-query(xs:QName('user'),"=","MarklogicUser",("collation=
http://marklogic.com/collation/codepoint";)),
cts:element-range-query(xs:QName('id'),"=","id415",("collation=
http://marklogic.com/collation/codepoint";))
))
)

The results are returned from the document "/mlusers/marklogicusers.com".
The doc-available is returning false. fn:doc-available("/mlusers/
marklogicusers.com").

What is the XDMP-PARENTLINK error.
Please help me out.

Thanks,
Prasanth
___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Deploy a javascript application

2015-04-30 Thread Yinyan guy
HI Geert,Thanks for your tip. As per the link below, I am using ML8 and i did 
choose the dev brand while initialized the slush framework.But still I am not 
able to deploy modules using ./ml. I got an error ""ERROR: 404 "Not 
Found"ERROR:"" 
I tried changing the version in deploy/build.properties to 8 but the error is 
same.Are you aware of any other issue?I am attaching my terminal output. Your 
inputs would be helpful.regards,Puneet
P.S. there were some errors on "No receipt for 
'com.apple.pkg.DeveloperToolsCLI' found at '/'." during the slush 
initialization which I ignored.
From: geert.jos...@marklogic.com
To: general@developer.marklogic.com
Date: Thu, 30 Apr 2015 09:22:54 +
Subject: Re: [MarkLogic Dev General] Deploy a javascript application






Hi Puneet,



We are very close to a new release for both Roxy and the slush template, but 
not there yet. If you proceed with installing slush-marklogic-node, I’d suggest 
following these hints for the moment:



https://github.com/marklogic/slush-marklogic-node/issues/68



Cheers,
Geert





From: Puneet Makwana 

Reply-To: MarkLogic Developer Discussion 

Date: Thursday, April 30, 2015 at 11:02 AM

To: MarkLogic Developer Discussion 

Subject: Re: [MarkLogic Dev General] Deploy a javascript application









Thanks Geert, David. 

Your inputs are helpful, I would choose thin node.js with roxy approach. 

Regards, 

Puneet 



--- Original Message ---



From: "Geert Josten" 

Sent: April 30, 2015 5:06 PM

To: "MarkLogic Developer Discussion" 

Subject: Re: [MarkLogic Dev General] Deploy a javascript application





Hi Puneet,



If you are looking at using AngularJS for front-end, you don’t need to use 
NodeJS as middle-tier at all. You could potentially serve the AngularJS files 
as static files from MarkLogic itself, or serve them from any other web 
container you can think of.
 I have seen cases where AngularJS was served from a Java-tier using Jetty and 
Tomcat.



Regarding separate web/app server: if you push your static files inside the 
REST-api modules database, you will have to use app-level authentication, 
otherwise you won’t be able to even show a simple login screen. Unless you 
would be happy to use the old
 fashion HTTP auth dialog from the browser.



There are two reference project that both use AngularJS as front-end, and 
MarkLogic REST-api as back-end. I suggest taking a look at these:

Samplestack: https://github.com/marklogic/marklogic-samplestack, mostly 
Java-oriented, and uses Gradle for deploymentSlush-marklogic-node: 
https://github.com/marklogic/slush-marklogic-node, no Java, thin NodeJs 
middle-tier, and uses Roxy (https://github.com/marklogic/roxy)
 for deployment
Samplestack is meant as a show case app. The slush template is intended as a 
skeleton to quickly ramp up new projects. There are other examples out there as 
well, like this World Match demo https://github.com/jojrg/wm14,
 which uses Java and Spring Boot, and Jquery, though fitting in AngularJS 
wouldn’t be difficult..



Kind regards,
Geert





From: Yinyan guy 

Reply-To: MarkLogic Developer Discussion 

Date: Thursday, April 30, 2015 at 8:51 AM

To: "general@developer.marklogic.com" 

Subject: [MarkLogic Dev General] Deploy a javascript application







Hi All,
I have  basic question on deployment of a simple application. I am planning to 
write the application using angularJS and wanted to know what is the best 
option for the deployment of this application. I have following questions



1. is it mandatory to use node.js for the mid tier?
2. Can I deploy the Angular.JS application which would use REST APIs using the 
Marklogic HTTP server?
3. is a separate web/app server the best option?



Thank You.
regards,
Puneet













___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general 
  pmakwana-macbookair:MyWork pmakwana$ slush
[slush] Installed generators
[slush] └── marklogic-node (0.1.1)
pmakwana-macbookair:MyWork pmakwana$ slush marklogic-node AppFirst
[slush] Using slushfile 
/usr/local/lib/node_modules/slush-marklogic-node/slushfile.js
[21:25:37] Starting 'marklogic-node:default'...
[?] Name for the app? AppFirst
[?] Roxy App Type? rest
[?] Roxy Branch? dev
Retrieving Roxy script
Got Roxy script
chmod done; appName=appfirst; appType=rest; branch=dev
Spawning Roxy new command: ml new appfirst --app-type=rest --server-version=7 
--branch=dev

Creating new Application: appfirst...



No initial source code is provided for REST apps. You can copy code from 
Application Builder under the source directory.

 done

done running ml new
Configuring Roxy
npm WARN package.json sample@0.0.0 No repository field.
bower not-cachedgit://github.com/Goldark/ng-json-explorer.git#*
bower resolve   git://github.com/Goldark/ng-json-explorer.git#*
bower cachedgit://github

Re: [MarkLogic Dev General] Deploy a javascript application

2015-04-30 Thread Geert Josten
Hi Puneet,

We are very close to a new release for both Roxy and the slush template, but 
not there yet. If you proceed with installing slush-marklogic-node, I’d suggest 
following these hints for the moment:

https://github.com/marklogic/slush-marklogic-node/issues/68

Cheers,
Geert

From: Puneet Makwana mailto:yinyan...@hotmail.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Thursday, April 30, 2015 at 11:02 AM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Deploy a javascript application

Thanks Geert, David.
Your inputs are helpful, I would choose thin node.js with roxy approach.
Regards,
Puneet

--- Original Message ---

From: "Geert Josten" 
mailto:geert.jos...@marklogic.com>>
Sent: April 30, 2015 5:06 PM
To: "MarkLogic Developer Discussion" 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Deploy a javascript application

Hi Puneet,

If you are looking at using AngularJS for front-end, you don’t need to use 
NodeJS as middle-tier at all. You could potentially serve the AngularJS files 
as static files from MarkLogic itself, or serve them from any other web 
container you can think of. I have seen cases where AngularJS was served from a 
Java-tier using Jetty and Tomcat.

Regarding separate web/app server: if you push your static files inside the 
REST-api modules database, you will have to use app-level authentication, 
otherwise you won’t be able to even show a simple login screen. Unless you 
would be happy to use the old fashion HTTP auth dialog from the browser.

There are two reference project that both use AngularJS as front-end, and 
MarkLogic REST-api as back-end. I suggest taking a look at these:

  *   Samplestack: https://github.com/marklogic/marklogic-samplestack, mostly 
Java-oriented, and uses Gradle for deployment
  *   Slush-marklogic-node: https://github.com/marklogic/slush-marklogic-node, 
no Java, thin NodeJs middle-tier, and uses Roxy 
(https://github.com/marklogic/roxy) for deployment

Samplestack is meant as a show case app. The slush template is intended as a 
skeleton to quickly ramp up new projects. There are other examples out there as 
well, like this World Match demo https://github.com/jojrg/wm14, which uses Java 
and Spring Boot, and Jquery, though fitting in AngularJS wouldn’t be difficult..

Kind regards,
Geert

From: Yinyan guy mailto:yinyan...@hotmail.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Thursday, April 30, 2015 at 8:51 AM
To: "general@developer.marklogic.com" 
mailto:general@developer.marklogic.com>>
Subject: [MarkLogic Dev General] Deploy a javascript application

Hi All,
I have  basic question on deployment of a simple application. I am planning to 
write the application using angularJS and wanted to know what is the best 
option for the deployment of this application. I have following questions

1. is it mandatory to use node.js for the mid tier?
2. Can I deploy the Angular.JS application which would use REST APIs using the 
Marklogic HTTP server?
3. is a separate web/app server the best option?

Thank You.
regards,
Puneet

___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Deploy a javascript application

2015-04-30 Thread Puneet Makwana
Thanks Geert, David.
Your inputs are helpful, I would choose thin node.js with roxy approach.
Regards,
Puneet

--- Original Message ---

From: "Geert Josten" 
Sent: April 30, 2015 5:06 PM
To: "MarkLogic Developer Discussion" 
Subject: Re: [MarkLogic Dev General] Deploy a javascript application

Hi Puneet,

If you are looking at using AngularJS for front-end, you don’t need to use 
NodeJS as middle-tier at all. You could potentially serve the AngularJS files 
as static files from MarkLogic itself, or serve them from any other web 
container you can think of. I have seen cases where AngularJS was served from a 
Java-tier using Jetty and Tomcat.

Regarding separate web/app server: if you push your static files inside the 
REST-api modules database, you will have to use app-level authentication, 
otherwise you won’t be able to even show a simple login screen. Unless you 
would be happy to use the old fashion HTTP auth dialog from the browser.

There are two reference project that both use AngularJS as front-end, and 
MarkLogic REST-api as back-end. I suggest taking a look at these:

  *   Samplestack: https://github.com/marklogic/marklogic-samplestack, mostly 
Java-oriented, and uses Gradle for deployment
  *   Slush-marklogic-node: https://github.com/marklogic/slush-marklogic-node, 
no Java, thin NodeJs middle-tier, and uses Roxy 
(https://github.com/marklogic/roxy) for deployment

Samplestack is meant as a show case app. The slush template is intended as a 
skeleton to quickly ramp up new projects. There are other examples out there as 
well, like this World Match demo https://github.com/jojrg/wm14, which uses Java 
and Spring Boot, and Jquery, though fitting in AngularJS wouldn’t be difficult..

Kind regards,
Geert

From: Yinyan guy mailto:yinyan...@hotmail.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Thursday, April 30, 2015 at 8:51 AM
To: "general@developer.marklogic.com" 
mailto:general@developer.marklogic.com>>
Subject: [MarkLogic Dev General] Deploy a javascript application

Hi All,
I have  basic question on deployment of a simple application. I am planning to 
write the application using angularJS and wanted to know what is the best 
option for the deployment of this application. I have following questions

1. is it mandatory to use node.js for the mid tier?
2. Can I deploy the Angular.JS application which would use REST APIs using the 
Marklogic HTTP server?
3. is a separate web/app server the best option?

Thank You.
regards,
Puneet

___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general
___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Deploy a javascript application

2015-04-30 Thread David Ennis
HI.

No, node.js is not required for the middle tier.  We use java, .net.
node.js.



Maybe let others chime-in about the 'best option' - however, For your other
idea - It is my absolute favourite.  2-tier app with an angular-based web
application being served via MarkLogic's awesome HTTP server (we cut out
the middle man).  In ML7, we've always used a framework and created API
endpoints rather than the REST API so that the http server and REST API are
on the same port on the same server  (so that we get no cross-site
scripting issues in client JS).  However, in ML8, the HTTP rewriter
squashes that problem anyway.




Kind Regards,
David Ennis


David Ennis
*Content Engineer*

[image: HintTech]  
Mastering the value of content
creative | technology | content

Delftechpark 37i
2628 XJ Delft
The Netherlands
T: +31 88 268 25 00
M: +31 63 091 72 80

[image: http://www.hinttech.com] 
  


On 30 April 2015 at 08:51, Yinyan guy  wrote:

> Hi All,
> I have  basic question on deployment of a simple application. I am
> planning to write the application using angularJS and wanted to know what
> is the best option for the deployment of this application. I have following
> questions
>
> 1. is it mandatory to use node.js for the mid tier?
> 2. Can I deploy the Angular.JS application which would use REST APIs using
> the Marklogic HTTP server?
> 3. is a separate web/app server the best option?
>
> Thank You.
> regards,
> Puneet
>
>
> ___
> General mailing list
> General@developer.marklogic.com
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
>
___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Deploy a javascript application

2015-04-30 Thread Geert Josten
Hi Puneet,

If you are looking at using AngularJS for front-end, you don’t need to use 
NodeJS as middle-tier at all. You could potentially serve the AngularJS files 
as static files from MarkLogic itself, or serve them from any other web 
container you can think of. I have seen cases where AngularJS was served from a 
Java-tier using Jetty and Tomcat.

Regarding separate web/app server: if you push your static files inside the 
REST-api modules database, you will have to use app-level authentication, 
otherwise you won’t be able to even show a simple login screen. Unless you 
would be happy to use the old fashion HTTP auth dialog from the browser.

There are two reference project that both use AngularJS as front-end, and 
MarkLogic REST-api as back-end. I suggest taking a look at these:

  *   Samplestack: https://github.com/marklogic/marklogic-samplestack, mostly 
Java-oriented, and uses Gradle for deployment
  *   Slush-marklogic-node: https://github.com/marklogic/slush-marklogic-node, 
no Java, thin NodeJs middle-tier, and uses Roxy 
(https://github.com/marklogic/roxy) for deployment

Samplestack is meant as a show case app. The slush template is intended as a 
skeleton to quickly ramp up new projects. There are other examples out there as 
well, like this World Match demo https://github.com/jojrg/wm14, which uses Java 
and Spring Boot, and Jquery, though fitting in AngularJS wouldn’t be difficult..

Kind regards,
Geert

From: Yinyan guy mailto:yinyan...@hotmail.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Thursday, April 30, 2015 at 8:51 AM
To: "general@developer.marklogic.com" 
mailto:general@developer.marklogic.com>>
Subject: [MarkLogic Dev General] Deploy a javascript application

Hi All,
I have  basic question on deployment of a simple application. I am planning to 
write the application using angularJS and wanted to know what is the best 
option for the deployment of this application. I have following questions

1. is it mandatory to use node.js for the mid tier?
2. Can I deploy the Angular.JS application which would use REST APIs using the 
Marklogic HTTP server?
3. is a separate web/app server the best option?

Thank You.
regards,
Puneet

___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general