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! <https://github.com/npm/npm/issues> 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: [email protected] To: [email protected] Date: Thu, 30 Apr 2015 14:24:33 +0000 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 <[email protected]> Reply-To: MarkLogic Developer Discussion <[email protected]> Date: Thursday, April 30, 2015 at 4:08 PM To: MarkLogic Developer Discussion <[email protected]> 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: [email protected] To: [email protected] Date: Thu, 30 Apr 2015 12:35:51 +0000 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 <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]> Reply-To: MarkLogic Developer Discussion <[email protected]> Date: Thursday, April 30, 2015 at 1:45 PM To: MarkLogic Developer Discussion <[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] To: [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]> Reply-To: MarkLogic Developer Discussion <[email protected]> Date: Thursday, April 30, 2015 at 11:02 AM To: MarkLogic Developer Discussion <[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]> 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 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 <[email protected]> Reply-To: MarkLogic Developer Discussion <[email protected]> Date: Thursday, April 30, 2015 at 8:51 AM To: "[email protected]" <[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 _______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
0 info it worked if it ends with ok 1 verbose cli [ 'node', 1 verbose cli '/usr/local/bin/npm', 1 verbose cli 'install', 1 verbose cli '-g', 1 verbose cli 'git://gethub.com/marklogic/slush-marklogic-node.git' ] 2 info using [email protected] 3 info using [email protected] 4 silly cache add args [ 'git://gethub.com/marklogic/slush-marklogic-node.git', null ] 5 verbose cache add spec git://gethub.com/marklogic/slush-marklogic-node.git 6 silly cache add parsed spec { raw: 'git://gethub.com/marklogic/slush-marklogic-node.git', 6 silly cache add scope: null, 6 silly cache add name: null, 6 silly cache add rawSpec: 'git://gethub.com/marklogic/slush-marklogic-node.git', 6 silly cache add spec: 'git://gethub.com/marklogic/slush-marklogic-node.git', 6 silly cache add type: 'git' } 7 verbose addRemoteGit git-gethub-com-marklogic-slush-marklogic-node-git-36943c6f not in flight; caching 8 info git [ 'clone', 8 info git '--template=/Users/pmakwana/.npm/_git-remotes/_templates', 8 info git '--mirror', 8 info git 'git://gethub.com/marklogic/slush-marklogic-node.git', 8 info git '/Users/pmakwana/.npm/_git-remotes/git-gethub-com-marklogic-slush-marklogic-node-git-36943c6f' ] 9 error 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 10 error 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. 11 verbose stack Error: 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 11 verbose stack 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. 11 verbose stack 11 verbose stack at ChildProcess.exithandler (child_process.js:751:12) 11 verbose stack at ChildProcess.emit (events.js:110:17) 11 verbose stack at maybeClose (child_process.js:1015:16) 11 verbose stack at Socket.<anonymous> (child_process.js:1183:11) 11 verbose stack at Socket.emit (events.js:107:17) 11 verbose stack at Pipe.close (net.js:485:12) 12 verbose cwd /Users/pmakwana/MyWork 13 error Darwin 13.4.0 14 error argv "node" "/usr/local/bin/npm" "install" "-g" "git://gethub.com/marklogic/slush-marklogic-node.git" 15 error node v0.12.2 16 error npm v2.7.4 17 error code 1 18 error 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 18 error 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. 19 error If you need help, you may report this error at: 19 error <https://github.com/npm/npm/issues> 20 verbose exit [ 1, true ]
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
