Gluing Couchbase Lite to Couchbase Server
The Sync Gateway manages HTTP-based data access for mobile clients. It handles access control and data routing, so that a single large Couchbase Server cluster can manage data for multiple users and complex applications.
To build Sync Gateway from source, you must have the following installed:
- Go 1.5 or later with your
$GOPATHset to a valid directory - GCC for CGO (required on Sync Gateway 1.2 or later)
Get repo tool
Use this workflow when you want to make sure your local build is stable and you want to catch any regressions your changes might have introduced by running the full test suite.
$ curl https://storage.googleapis.com/git-repo-downloads/repo > repo
$ chmod +x repo
Init repo
$ ./repo init -u "https://github.com/couchbase/sync_gateway.git" -m manifest/default.xml
Repo sync
$ ./repo sync
Build, Test and Install
$ GOPATH=`pwd`/godeps go test github.com/couchbase/sync_gateway/...
$ GOPATH=`pwd`/godeps go install github.com/couchbase/sync_gateway/...
Use this workflow when you want to modify sync_gateway source using the standard go tooling and IDE's.
Warning: there are known issues with this approach!
go get -u -t github.com/couchbase/sync_gateway/...
After this operation completes you should have a new sync_gateway binary in $GOPATH/bin
Running Unit Tests
$ cd $GOPATH/src/github.com/couchbase/sync_gateway/
$ ./test.sh
Apache 2 license.
-
Mailing list -- feel free to ask for help!
-
File a bug report if you find a bug.