GoCrasHttp
Small Golang expirement 😄
Currently up as an alpine container on heroku
Docker
Only use Docker to build the image if using containerization technologies like:
- Docker Swarm
- Kubernetes (k8s)
- Google Container Platform
- Heroku (ex:
heroku container:push web --app <app_name>)
- AWS/Azure Container Solutions (Ex: Fargate)
- A VPS with only Docker as a dependency (Digital Ocean/Linode box)
The image for production is using Alpine Linux.
Very small so no need to worry about bandwith.
Build times are very fast, even from scratch!
Development
Use a local Go install to develop this software.
Get Gin and GoConvey for dev:
Linux:
go get github.com/codegangsta/gin \
&& go get github.com/smartystreets/goconvey \
&& source ~/.bashrc
macOS:
go get github.com/codegangsta/gin \
&& go get github.com/smartystreets/goconvey \
&& source ~/.bash_profile
Use Gin for dev:
./scripts/dev.sh
OR
gin run main.go
Use Convey for dev:
Open a new pane/tab in your terminal and just run $GOPATH/bin/goconvey
This will watch your files, run tests on save, and display really good information about your tests on http://127.0.0.1:8080
Refer to the ./scripts dir for other tasks that can be run