This is tiny GitStats clone written in Scala by Lukas Stefaniak to learn Scala.js
Source code available at GitHub: lustefaniak/gitcrossstats
It uses dc-js, crossfilter, d3 and bootstrap on the frontend.
To use it, generate your own data/log.json
file using /bin/git-log2json.sh
script. Just
go to the directory of your
git repository checkout and redirect output of the script to file: bin/git-log2json.sh >
data/log.json
You can also point it to commits endpoint of restfulgit.
Format of the commit log used should be also compatible with Gihub API, but I didn't check that.
If you want to play with some code just launch sbt
in main directory.
~fastOptJS
, see the scala.js magic happen.gitcrossstats/target/scala-2.11/gitcrossstats-fastopt.js