cosmos-sdk/docs/sdk/sdk-by-examples/simple-governance/setup.md
gamarin2 c5fcc9b65f Add SDK_By_Examples to doc (#1795)
* Add simple gov example and sdk-by-example folder

* Add simple gov example

* Add simple gov example and sdk-by-example folder

* Add simple gov example

* fix sectino title

* Jb feedback + Offload some of the content in other docs

* Add what is cosmos back

* platform to framewoork

* Reemove testnet
2018-08-12 03:37:26 -04:00

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!