Skip to content

A simple git server with API built using node

Notifications You must be signed in to change notification settings

bezzer/git-server

Repository files navigation

Git Server

This project features a simple git server and API built around it that allows users to create, push, pull and read information about the repo.

Gettings started

  1. Install dependecies yarn
  2. Start server yarn start (or alternatively start in devmode with yarn dev)

Routes

Git

Git repos are accessed via http on /:user/:repo.git

Browse API

  • POST /api/:user/:repo - create a new repo for the user
  • GET /api/:user - list the user's repos
  • GET /api/:user/:repo - list commits on the repo
  • GET /api/:user/:repo/:path - list files at path

View file contents

  • GET /raw/:user/:repo/:commit/:path - View/download the file contents

License

MIT

About

A simple git server with API built using node

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published