Skip to content

Instantly share code, notes, and snippets.

@mogeta
Last active August 29, 2015 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mogeta/8784443 to your computer and use it in GitHub Desktop.
Save mogeta/8784443 to your computer and use it in GitHub Desktop.
Go弱資料 2014/02/09

Go弱の会 第二回 開催日 2014/02/09

前回のあらすじ。

https://gist.github.com/mogeta/6154928

コンセプト

Goやってる人は「強い」感ある人が多いので気軽に参加出来る
弱者が集まる勉強会。ゆるい感じでいきます。主催者が一番の弱者 主催者の趣味でDartのお話をすることもあります。

goの話

revelのお話

  • http://robfig.github.io/revel/
  • revelはGoで書かれたWebフレームワーク
  • 今回はNitrous.io上でrevelを立ち上げるところまでを行う。

nitrous.ioのお話

boxの作成

new box

WebIDE上で以下のコマンドを叩きます。

#ライブラリとコマンド取得
go get github.com/robfig/revel                                                                                                               
go get github.com/robfig/revel/revel

#アプリ作成。 myappの部分が名前なのでお好きなものに
revel new myapp

command

portの変更

port 3000が80に自動的にフォワードされる(http://help.nitrous.io/preview/)
せっかくなので設定。

workspace/src/myapp/conf/app.conf

http.port=3000

そして、以下のコマンドを実行

revel run myapp

プレビューで確認してみましょう!お疲れ様でした!

test

work


おまけ1

redisとかを入れてみよう

autoparts

#インストール
parts install redis

#入れただけでは動きません
action@sandbox-75615:~$ redis-cli                                                                                                                                    
Could not connect to Redis at 127.0.0.1:6379: Connection refused                                                                                                     
not connected>     

#このコマンドを叩きましょう
parts start redis
redis-cli                                                                                                                                    
redis 127.0.0.1:6379>  

#止める場合は
parts stop redis                                                                                                                                              

おまけ2

Dartのお話

AngularJS & AngularDart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment