# README
Skatepark API - GO
My skatepark api written in golang. It exposes all of the skateparks that I have been too.
dep
This project currently uses dep
as it's dependency management.
- go get -u github.com/golang/dep/cmd/dep (curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh)
- dep init
- dep ensure
- dep ensure -add github.com/foo/bar
Logging
- https://github.com/sirupsen/logrus
- dep ensure -add github.com/sirupsen/logrus
Swagger
This project uses go-swagger.
Testing
Tests? Who needs tests... I have some, but not enough.
gomock
go get github.com/golang/mock/gomock
go install github.com/golang/mock/mockgen
cgo
gomock
requires that gcc
be installed, if lucky enough to be using apt-get
: sudo apt-get install gcc libc6-dev
.
Docker
The API runs within a docker container.
Build
- docker build ./ -t skatepark-api-go
Execute
- docker run -d --rm -it -p 8080:8080 --name=skatepark-api-go-container -t skatepark-api-go
GCR
- docker tag api-go us.gcr.io/${PROJECT_ID}/skatepark-api-go:latest
- gcloud docker -- push us.gcr.io/${PROJECT_ID}/skatepark-api-go:latest
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author