Skip to content

olegpesok/nodegit-http

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 [email protected]: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.

About

Read-only GitHub-like HTTP API atop nodegit using express

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published