1.3.7 • Published 10 years ago

generator-gorest v1.3.7

Weekly downloads
-
License
ISC
Repository
-
Last release
10 years ago

yeoman generator for a simple go rest api heavily based on the work done here https://github.com/earlonrails/generator-go-microservice

dependencies

  • gorrilla mux for routing
  • negroni for middleware
  • logrus for logging

optional

  • prometheus for metrics
  • mongo
  • stomp (messaging)

usage

install yeoman

npm install yo -g

npm install generator-gorest -g

  
 mkdir $GOPATH/src/github.com/<user>/<appname>
 cd $GOPATH/src/github.com/<user>/<appname>
 yo gorest
 go get .
 (optional) go get github.com/tools/godep
 (optional) godep save -r ./... 
  docker build -t <appname> .
  docker-compose up -d
  
  curl http://<dockermachineip>:3000/sys/info/ping
  
1.3.7

10 years ago

1.3.6

10 years ago

1.3.5

10 years ago

1.3.4

10 years ago

1.2.4

10 years ago

1.2.3

10 years ago

1.2.2

10 years ago

1.2.1

10 years ago

1.2.0

10 years ago

1.1.0

10 years ago

1.0.0

10 years ago