Vagrant environment for Golang, with support for both go and gb tools.
> git clone https://github.com/rgazo/go-vagrant.git
> cd go-vagrant/vagrant
> vagrant up
Log in to the vagrant box:
> vagrant ssh
> ll
There will be 2 directories
src/
vagrant/
- vagrant contains configuration for
haproxy
- src will contain your project.
> cd src
> mkdir [your project name]
> cd [your project name]
> glide install
Glide Glide is a package manager for Go. More info: https://github.com/Masterminds/glide
HAproxy
Start haproxy:
sudo service haproxy start
Your server will be at http://192.168.50.4/
- You will get a 503 error until you have your go project running on port 8000
PostgreSQL
Start PostgreSQL
sudo service postgresql start
Go (Golang)
- https://golang.org/
- Read the book: https://www.golang-book.com/books/intro
- Good minimalist framework: https://github.com/labstack/echo