Project for my learning stuff
-
Setup Docker (Max OS X)
- Follow the instructions at http://docs.docker.com/installation/mac/
- Start a docker host by
Docker Quick Start Terminal
- Get the IP address of your docker host
docker-machine ip default
- Add a line to your /etc/hosts that goes
<Docker IP> dockerhost
- Run
docker-machine env default
and copy the export statements to your ~/.bash_profile
-
Go
cd server/ go install
-
webClient
cd webClient/react npm install
-
DB
cd docker/ make run
-
CY Note:
export GOPATH=~/go #设置GOPATH为合适的值 go get github.com/gorilla/websocket go get github.com/garyburd/redigo/redis go get github.com/dgrijalva/jwt-go go get github.com/gin-gonic/gin git clone https://github.com/golang/net $GOPATH/src/golang.org/x/net go get github.com/zhanghjster/ChatChat cd server go build ./server 在react/src下 npm install