brew install etcd
cd /Users/bhalle/Development/go/src
mkdir github.com
cd github.com
mkdir bhalle
cd bhalle
git clone https://github.com/bhalle/pingpong.kite.git
git clone https://github.com/bhalle/foobar.kite.git
git clone https://github.com/bhalle/api.kite.git
cd api.kite
go get github.com/koding/kite
go get github.com/koding/kite/kontrol/kontrol
openssl genrsa -out key.pem 2048
openssl rsa -in key.pem -pubout > key_pub.pem
mkdir certs
mv key.pem certs/
mv key_pub.pem certs/
KONTROL_PORT=6000
KONTROL_USERNAME="kontrol"
KONTROL_STORAGE="etcd"
KONTROL_KONTROLURL="http://127.0.0.1:6000/kite"
../../../../bin/kontrol -publickeyfile /Users/bhalle/Development/go/src/github.com/bhalle/api.kite/certs/key_pub.pem -privatekeyfile /Users/bhalle/Development/go/src/github.com/bhalle/api.kite/certs/key.pem -port 6000 -username kontrol -initial
etcd
../../../../bin/kontrol -publickeyfile /Users/bhalle/Development/go/src/github.com/bhalle/api.kite/certs/key_pub.pem -privatekeyfile /Users/bhalle/Development/go/src/github.com/bhalle/api.kite/certs/key.pem -port 6000 -username kontrol
cd /Users/bhalle/Development/go/src/github.com/bhalle/pingpong.kite/
go run pingpong.go
cd /Users/bhalle/Development/go/src/github.com/bhalle/foobar.kite/
go run foobar.go
cd /Users/bhalle/Development/go/src/github.com/bhalle/api.kite/
go run main.go
should see: hello world
should see: ping >< pong
should see: foo-bar
- this code sucks (ben-wa) ... DON'T use it ... only learn how kites works
- ive only tried this on osx
- you obviously need to change paths used above to fit your environment
- next will try to map out how to use kitectl
- after that will try to map out how to use with docker
- and then ... will try to map out how to use with tutum.co (and digital ocean)
- lastly say hi to your mother for me!