mtgterao / derby-mas-memo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

derby-mas-memo

はじめに

Goのパスルールにより、git cloneする場合は以下のようにする必要があります

$ git clone https://github.com/<user>/derby-mas-memo.git ${GOPATH}/src/github.com/mtgterao/derby-mas-memo

もしくは、

$ go get github.com/mtgterao/derby-mas-memo

$ git remote add <alias> https://github.com/<user>/derby-mas-memo.git

godepを使ってパッケージ管理をしているので、godepをインストールしてください。

$ go get github.com/tools/godep

$ cd github.com/mtgterao/derby-mas-memo/

$ godep restore

cacheとしてredisを使う想定です。

libraries/cache.goにキャッシュ接続部分は実装してあります。

また、redisへの接続設定周りは、conf/app.confにcache_として切ってあります。

ヘルパー関数

独自にhelpersディレクトリを切ってあり、form_helpers.goを用意しているので、フォームヘルパーはここに追記お願いします

マイグレーション

マイグレーション実行時は以下の通り接続名の指定が必要です。

$ bee migration -driver="postgres" -conn="postgres://<pg_user>:<pg_pass>@<host>:<port>/<db_name>?sslmode=disable"

About


Languages

Language:Go 56.9%Language:JavaScript 39.2%Language:Smarty 3.9%