Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I am building an app in AngularJS that needs to clone GitHub wikis attached to GitHub repos. The GitHub API does not have functionality to do anything with the GitHub wikis and GitHub support suggested I could use libgit2. With that in mind, I found nodegit.

So, now I have nodegit installed, and I made a basic javascript file out of the code example they have for Cloning a repository and reading a file. I have that file, called nodegit.js, working and by navigating to the folder containing it and typing

node ./nodegit.js

The script runs great and clones the repo into the temp folder.

Fantastic.

Now...how can I use this script in my angularjs app?

  1. Is there a way to run a node script from angular?
  2. Is there a way to use nodegit from angular itself?
  3. Is there some other angular->github non-GitHub API script out there?

Any help greatly appreciated. I've gotten stuck on this one.

thank you,

Scott

share|improve this question
1  
Think of the node portion separately since it will be executed on the server but the angular will be executed on the client. You will want to send a request using $http or otherwise from Angular to the node server which when it gets said requests should run the function you want. –  shaunhusain Apr 7 at 20:51
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.