Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.
/ gwn Public archive

Like GitWeb, but Node

License

Notifications You must be signed in to change notification settings

zacanger/gwn

Repository files navigation

gwn

DEPRECATED, use Klaus

Like GitWeb, but Node

CircleCI Docker Pulls Patreon ko-fi

screenshot


Installation

npm i -g gwn

Usage

gwn -r path-to-repos-root -p port
# example
gwn -r ~/dev -p 8000
# root defaults to cwd
# port defaults to 9999

Docker

docker run -it -p 9999:9999 -v /path/to/repos:/repos zacanger/gwn

Check out the repo.

Alternatives

  • GitWeb — it's built in, but it's a CGI script written in Perl, which is not a language I love.
  • cgit — fast, but still quite complicated, and written in C, which is not very approachable.
  • Klaus — simple, written in a good language (Python), well-maintained. If I didn't want to write my own, I'd be using this.

TODO

  • Refactor all the code, most of it is janky
  • Branch and tag support
  • Use something like Isomorphic git or Git-JS to do the actual git work, rather than execing all over the place

Credits

Some code based on this project.

LICENSE