All Projects → Leko → godemo

Leko / godemo

Licence: other
Go web application demo with gin-gonic

Programming Languages

go
31211 projects - #10 most used programming language
API Blueprint
66 projects
Smarty
1635 projects
coffeescript
4710 projects
CSS
56736 projects

Go sample application

See Goに入門してRedis+PostgresなアプリをHerokuにデプロイするまで and APIドキュメントでAPIサーバをテストする

Usage

Install Vagrant, Ansible and Bower

$ git clone [email protected]:Leko/godemo.git
$ cd godemo
$ bower install
$ vagrant up --provision
$ vagrant ssh

$ vagrant@precise64:~$ cd go/src/godemo
$ vagrant@precise64:~/go/src/godemo$ go get
$ vagrant@precise64:~/go/src/godemo$ go get github.com/codegangsta/gin
$ vagrant@precise64:~/go/src/godemo$ gin -p 8080

Then open http://localhost:3000

Deploy

$ rm -rf .git
$ git init
$ git add .
$ git commit -m "initial commit"
$ heroku apps:create --addons heroku-postgresql:hobby-dev,rediscloud:30 --buildpack heroku/go
$ git push heroku master

$ # Wait a minutes
$ heroku open
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].