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]> Sent: April 30, 2015 5:06 PM To: "MarkLogic Developer Discussion" <[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] 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
