creationix / js-git

A JavaScript implementation of Git.
MIT License
3.83k stars 265 forks source link

NodeJS Git Server #116

Open phuicy opened 9 years ago

phuicy commented 9 years ago

How would I go about implementing js-git with NodeJS Git Server?

creationix commented 9 years ago

I have no idea. JS-Git is a set of modules that implement various interfaces, the core interface is the .saveAs, .loadAs, etc calls.

JS-Git can use real git repos as backends using the git-fs backend. There is a concrete implementation using node's FS apis at https://github.com/creationix/git-node-fs

phuicy commented 9 years ago

Oh cool.

NodeJS Git Server offers a multi-tenant git server using NodeJS. Thus, it has the outward facing interfaces, and user management. Like a backend to a github clone.

However, if this is easily achieved with js-git and git-node-fs, awesome.

creationix commented 9 years ago

JS-Git is super low level, It can easily read local repos, but it doesn't serve them over network protocols or give you user management APIs.

phuicy commented 9 years ago

That's why I would like to use it with a server.