Quick Start

For now, we didn’t deploy binary yet. So you should compile Yorkie yourself.

Yorkie uses MongoDB to store it’s data. To start MongoDB, type docker-compose up.

Next, let’s start a Yorkie agent. Agent runs until they’re told to quit and handle the communication of maintenance tasks of Agent. and start the agent:

$ ./bin/yorkie agent

Use the -c option to change settings such as the MongoDB connectionURI.

$ ./bin/yorkie agent -c yorkie.json

The configuration file, yorkie.json with default values is shown below.


Developing Yorkie

For building Yorkie, You’ll first need Go installed (version 1.13+ is required). Make sure you have Go properly installed, including setting up your GOPATH.

Next, clone this repository into some local directory and then just type make build. In a few moments, you’ll have a working yorkie executable:

$ make build
go build -o ./bin/yorkie

$ ./bin/yorkie
  yorkie [command]

Available Commands:
  agent       Starts yorkie agent.
  help        Help about any command

  -h, --help   help for yorkie

Use "yorkie [command] --help" for more information about a command.

Tests can be run by typing make test.

NOTE: make test includes integration tests that require a local MongoDB listen on port 27017. To start MongoDB, type docker-compose up.

If you make any changes to the code, run make fmt in order to automatically format the code according to Go standards.

Edit this page