Skip to content

msoftware/sync_gateway

 
 

Repository files navigation

Build Status

Couchbase Sync Gateway

Join the chat at https://gitter.im/couchbase/sync_gateway

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.

Product home page

Documentation

Downloads

Build pre-requisites

To build Sync Gateway from source, you must have the following installed:

  • Go 1.5 or later with your $GOPATH set to a valid directory
  • GCC for CGO (required on Sync Gateway 1.2 or later)

Building From Source

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/...

Building From source via go get

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

License

Apache 2 license.

Tutorials and Other Resources

About

Connects Couchbase Lite to Couchbase Server

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Go 93.7%
  • Shell 3.3%
  • Objective-C 1.6%
  • Ruby 1.0%
  • Smarty 0.2%
  • Makefile 0.2%