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 <error-format> 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 <[email protected]<mailto:[email protected]>>
Reply-To: MarkLogic Developer Discussion 
<[email protected]<mailto:[email protected]>>
Date: Thursday, April 30, 2015 at 1:45 PM
To: MarkLogic Developer Discussion 
<[email protected]<mailto:[email protected]>>
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: [email protected]<mailto:[email protected]>
To: [email protected]<mailto:[email protected]>
Date: Thu, 30 Apr 2015 09:22:54 +0000
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 <[email protected]<mailto:[email protected]>>
Reply-To: MarkLogic Developer Discussion 
<[email protected]<mailto:[email protected]>>
Date: Thursday, April 30, 2015 at 11:02 AM
To: MarkLogic Developer Discussion 
<[email protected]<mailto:[email protected]>>
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" 
<[email protected]<mailto:[email protected]>>
Sent: April 30, 2015 5:06 PM
To: "MarkLogic Developer Discussion" 
<[email protected]<mailto:[email protected]>>
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 <[email protected]<mailto:[email protected]>>
Reply-To: MarkLogic Developer Discussion 
<[email protected]<mailto:[email protected]>>
Date: Thursday, April 30, 2015 at 8:51 AM
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
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 
[email protected]<mailto:[email protected]> Manage 
your subscription at: http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to