0.0.3 • Published 10 years ago

nodegit-http v0.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

Read-only GitHub-like HTTP API using nodegit.

While there are a few similar node projects out there, the goal of this project is to keep the implementation as simple as possible. As a result, there are no users and thus no authentication.

Install & Usage

npm install -g nodegit
npm install -g nodegit-http

nodegit-http [BASE_DIR [, PORT]]

Or from source:

git clone git@github.com:deian/nodegit-http.git
cd nodegit-http && npm install && npm --BASE_DIR=/var/repos/ --PORT=1337 start

nodegit-http serves any git repositories from the current directory, or that specified by the environment variable BASE_DIR. The assumed directory structure is as follows:

BASE_DIR/repo.git
BASE_DIR/myotherrepo.git
...

API

The server exposes sevaral routes, similar to the GitHub-API. All responses are JSON.