cosmos-sdk/docs/sdk/sdk-by-examples/simple-governance/setup.md

739 B

Setup

Prerequisites

  • Have go and git installed
  • Don't forget to set your PATH and GOPATH

Setup work environment

Go to the Cosmos-SDK repo and fork it. Then open a terminal and:

cd $GOPATH/src/github.com/your_username
git clone github.com/your_username/cosmos-sdk
cd cosmos-sdk

Now we'll add the origin Cosmos-SDK as upstream in case some cool feature or module gets merged:

git remote add upstream github.com/cosmos/cosmos-sdk
git fetch upstream
git rebase upstream/master

We will also create a branch dedicated to our module:

git checkout -b my_new_application

We are all set!