To get prepared for the Go microservice codelab you need to :
- Know the Go syntax by having a look at the tour of Go,
- For Linux and MacOS a prepared workspace is provided,
- Windows computer may have VirtualBox installed to be able to import a prepared virtual machine containing the lab
- Everybody has Docker installed on its laptop to be able to launch MongoDB and your docker packaged microservice
For those who are willing to setup their environnement by hand :
- Install Go version 1.7 minimum, 1.10.3 recommended
- Prepare a Go workspace (3 directories :
~/go/src
,~/go/pkg
,~/go/bin
) - Install Docker et Docker-compose
- Install JQ or Postman.
- Install Make
- Install a Go compatible IDE : VSC + Go plugin recommended, Jetbrains Goland or Ultimate IntelliJ.
- Clone handsongo project in the workspace under
~/go/src/github.com/Sfeir/handsongo
and checkoutstart
branch. - Check that the project compiles with the following command returning no error :
make all
You are done !