1

I have extended ACE - Code Editor for Web to support a language which we are developing. Now I want to add Git support or use GitHub APIs to the IDE which we built with ACE. I have looked into JGIT but I wonder if it will be possible to integrate it with ACE or not. I need to support some simple GIT feature like exploring the repo, push, pull, merge etc.

I want to do something like SCM Manger with my IDE.

I found a similar topic: Git integration with my Java EE application

But it was not of much help.

Can someone point to the right direction to do this.

Thanks.

Community
  • 1
  • 1
user2228512
  • 37
  • 1
  • 1
  • 8

1 Answers1

0

Ace is just an editor, it would require some plugin/backend logic to achieve this integration.

Ace just decorates your div (or textarea). It has limited control on what you do with the content.

If you want to integrate with Github or Bitbucket or any other provider, you would need to put in something in between that wires up the Ace frontend with git.

I have seen applications use the following -

  1. Gerrit
  2. Gist

In both the above cases, ace editor was used as a frontend for code editing. Although, Gist in itself has a cool editor.

Edit - Yes, integrating with Github would make sense. You've probably have had a look at Github Repositories API. Also, have a look at BitBucket API, if you are looking at alternatives.

There are a few Github client libraries available that can possibly make your life easier -

  1. C#
  2. Java
  3. PHP

The documentation of these libraries would be worth skimming through, even if you decide to build your own :).

Have a look at this question if you are planning to use Private Github repositories.

Community
  • 1
  • 1
Srikanth Venugopalan
  • 9,011
  • 3
  • 36
  • 76
  • Thanks a lot. That was really helpful. Gerrit looks a bit of a overkill for now and Gist does not have source code open :( I thinking to change my direction and look into Github APIs so that users can have their code on Github and not on our servers. For now my requirements are user authentication via github, browse repo, push, pull, commit and merge. Please share some pointers in this direction if you have any. – user2228512 Mar 31 '13 at 06:19