Skip to content

matsu0228/revel-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

install

gvm

mkdir -p $HOME/hoge/{pkg,bin,src}
gvm pkgset create hoge

gvm pkgenv hoge
# line12
export GOPATH; GOPATH="/Users/nghinv/.gvm/pkgsets/go1.7/hoge:$HOME/hoge:$GOPATH"
# line16
export PATH; PATH="/Users/nghinv/.gvm/pkgsets/go1.7/hoge/bin:${GVM_OVERLAY_PREFIX}/bin:$HOME/hoge/bin:${PATH}"

gvm pkgset use hoge

glide

-package management tool

curl https://glide.sh/get > glide.sh
vim glide_install.sh

GOPATH='~/hoge'
$GOPATH -> ${GOPATH}

sh glide_install.sh
  • create
cd /your/working/dir/
glide create

cat glide.yaml

revel

  • install
$ go get github.com/revel/cmd/revel
  • setup $ run
$ revel new github.com/*user*/*myproj*
$ revel run github.com/*user*/*myproj*
  • glide.yaml
$ cd src/github.com/*user*/*myproj*
$ glide create
$ glide install

GORM

  • install
go get -u github.com/jinzhu/gorm
  • create db conf
$ vim conf/db.fonf

[database]
db.host:       0.0.0.0
db.port:       3306
db.user:       your_user
db.password:   ***
db.name:       your_db
db.protocol:   tcp
db.args:       charset=utf8&parseTime=True&loc=Local

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published