Skip to content

Provides a REST API over a set of bare git repositories

Notifications You must be signed in to change notification settings

vguiot/git-bare-node-rest-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

GIT BARE NODE REST API

The aim of the project is to provide a readonly restful Git API over a set of bare repositories.

# returns all repositories hosted
GET /
  [ "foo.git", "bar.git" ]

# returns all repositories matching regexp
GET /repo/^foo
  [ "foo.git" ]

# the real deal comes now:
# executes git grep over matching repositories/path/refspec and return results
GET /repo/^foo/grep/HEAD?q=SOMETHING&path=*.md
  [ {
    "branch": "HEAD",
    "file": "README.cs",
    "line_no": "128",
    "line": "Now this is really SOMETHING",
    "repo": "foo.git"
  } ... ]

Frontend

You can use this service from the git-react-client React UI.

Install

You can run it manually using npm start, or use forever/pm2 to keep it running.

Set the REPOSITORIES_DIR env variable to the folder containing your bare repositories.

Credits

Project was initially forked from git-rest-api but has cut most of the ties now.

About

Provides a REST API over a set of bare git repositories

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%