diff --git a/.gitignore b/.gitignore index f858c41..dfc9f94 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ main *.peg.go cayley.cfg .cayley_history +.DS_Store # The built binary /cayley diff --git a/README.md b/README.md index 1006d9d..1bce5df 100644 --- a/README.md +++ b/README.md @@ -34,9 +34,21 @@ Rough performance testing shows that, on consumer hardware and an average disk, Grab the latest [release binary](https://github.com/google/cayley/releases) and extract it wherever you like. -If you prefer to build from source, see the documentation on the wiki at [How to start hacking on Cayley](https://github.com/google/cayley/wiki/How-to-start-hacking-on-Cayley) +If you prefer to build from source, see the documentation on the wiki at [How to start hacking on Cayley](https://github.com/google/cayley/wiki/How-to-start-hacking-on-Cayley) or type +``` +mkdir -p ~/cayley && cd ~/cayley +export GOPATH=`pwd` +export PATH=$PATH:~/cayley/bin +mkdir -p bin pkg sr/github.com/google +cd src/github.com/google +git clone https://github.com/google/cayley +cd cayley +go get github.com/tools/godep +godep restore +go build ./cmd/cayley +``` -`cd` to the directory and give it a quick test with: +Then `cd` to the directory and give it a quick test with: ``` ./cayley repl --dbpath=data/testdata.nq ```