Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Githubエコシステムを活用した 
イマドキの趣味開発 
@sue445 
2014/09/24 開発部会 LT 
Copyright Drecom Co., Ltd. All Rights Reserved.
⮬ᕫ⤂௓ 
sue445 
● drecom (2012 - ) 
○ ♫ෆ䝒䞊䝹䛸䛛♫ෆ䝷䜲䝤䝷䝸䛸䛛䜲䞁䝣䝷䛸䛛 
● 䝗䝸䝁䝮Ṕ == RubyṔ == 2ᖺ䛱䜗䛔 
● ᰩ䛾ே 
● 䝥䝸䜻䝳䜰䛾ே 
● 䝃䝄䜶䛾ே 
● RubyKa...
Copyright Drecom Co., Ltd. All Rights Reserved. 
RubyKaja!! @RubyKaigi2014 
http://kaja.rubyist.net/2014/kaja
Copyright Drecom Co., Ltd. All Rights Reserved. 
今期の嫁: キュアハニー
Copyright Drecom Co., Ltd. All Rights Reserved. 
本妻: キュアピース
ヰ䛩䛣䛸 
● ᭱㏆స䛳䛯䜰䝥䝸䛾⤂௓ 
● Github㐃ᦠ䛧䛯䝃䞊䝡䝇䛾⤂௓ 
○ 䝞䝑䝆䛷䝸䝫䝆䝖䝸䜢┠❧䛯䛫䜛 
○ ඲⮬ື䝔䝇䝖䠃䝕䝥䝻䜲 
○ 䝽䞁䜽䝸䝑䜽䝕䝥䝻䜲 
● 䜎䛸䜑 
Copyright Drecom Co., Ltd...
᭱㏆స䛳䛯䜰䝥䝸䛾⤂௓ 
Copyright Drecom Co., Ltd. All Rights Reserved.
᭱㏆స䛳䛯䜰䝥䝸䛾⤂௓ 
Gemoire (ジェモワール) 
http://gemoire.herokuapp.com/ 
https://github.com/sue445/gemoire 
Copyright Drecom Co., Ltd...
඲యീ 
1. push 2. webhook 
Copyright Drecom Co., Ltd. All Rights Reserved. 
App 
doc 
3. clone 
5. browsing 
4. generate
Gemoire 
● ྡ๓䛾⏤᮶䛿Gem + Grimoire(㨱ᑟ᭩) 
○ gem䛾ྲྀᢅㄝ᫂᭩䜢㞟䜑䛯ⓗ䛺ឤ䛨 
○ 䝆䜵䝮 + 䜾䝸䝰䝽䞊䝹 = 䝆䜵䝰䝽䞊䝹 
● gem䛾YARD䝗䜻䝳䝯䞁䝖䜢ᡭ㍍䛻බ㛤䛩䜛䛯䜑䛾䜰䝥䝸 
● git䛾...
䝞䝑䝆䛷䝸䝫䝆䝖䝸䜢┠❧䛯䛫䜛 
Copyright Drecom Co., Ltd. All Rights Reserved.
䝞䝑䝆䛷䝸䝫䝆䝖䝸䜢┠❧䛯䛫䜛 
Copyright Drecom Co., Ltd. All Rights Reserved.
䝞䝑䝆䛷䝸䝫䝆䝖䝸䜢┠❧䛯䛫䜛 
CIの状態gemの最新率 
Copyright Drecom Co., Ltd. All Rights Reserved. 
テストカバレッ 
ジ 
コードのスコア 
Ready状態の 
issueの数 
デプ...
䝞䝑䝆䛷䝸䝫䝆䝖䝸䜢┠❧䛯䛫䜛 
● README䛿䝸䝫䝆䝖䝸䛾䝖䝑䝥䛻⾲♧䛥䜜䜛≉ู䛺䝣䜯䜲䝹 
● markdown䛷䛒䜜䜀⏬ീ䜒⾲♧䛷䛝䜛 
● github䛸㐃ᦠ䛧䛶䜛እ㒊䝃䞊䝡䝇䛿䛰䛔䛯䛔README䛻㈞䜛⏝ 
䛾䝞䝑䝆䜒ᥦ౪䛧䛶䜛䛣...
䝞䝑䝆䛷䝸䝫䝆䝖䝸䜢┠❧䛯䛫䜛 
Copyright Drecom Co., Ltd. All Rights Reserved. 
Green = LGTM (Looks good to me) 
Orange =ちょい危険 
Red = ヤバ...
඲⮬ື䝔䝇䝖䠃䝕䝥䝻䜲 
Copyright Drecom Co., Ltd. All Rights Reserved.
Run test with each PR push 
Copyright Drecom Co., Ltd. All Rights Reserved. 
TEST FAILED
Run test with each PR push 
Copyright Drecom Co., Ltd. All Rights Reserved. 
TEST SUCCEESS
୺䛺CaaS (CI as a Service) 
● Travis CI (https://travis-ci.org/) 
● Circle CI (https://circleci.com/) 
● Wercker (http://wer...
Automation deploy 
Copyright Drecom Co., Ltd. All Rights Reserved. 
CI 
Test 
Test and 
Deploy
Automation deploy 
Copyright Drecom Co., Ltd. All Rights Reserved.
䝽䞁䜽䝸䝑䜽䝕䝥䝻䜲 
Copyright Drecom Co., Ltd. All Rights Reserved.
Deploy to Heroku Button 
Copyright Drecom Co., Ltd. All Rights Reserved.
䝽䞁䜽䝸䝑䜽䝕䝥䝻䜲 
Copyright Drecom Co., Ltd. All Rights Reserved.
ボタンをポチれば他の人のアプリを 
自分のHerokuアカウントにデプロ 
イできる 
Copyright Drecom Co., Ltd. All Rights Reserved.
app.json(タᐃ䝣䜯䜲䝹) 
Copyright Drecom Co., Ltd. All Rights Reserved. 
デプロイ後に呼ばれ 
るコマンド 
heroku config add NAME=”value” 
必要なアド...
Pull Request䛾branch䜢䝕䝥䝻䜲䛩䜛 
Copyright Drecom Co., Ltd. All Rights Reserved. 
Pull Request出されている 
branch
branch䜢㑅ᢥ 
Copyright Drecom Co., Ltd. All Rights Reserved.
Deploy to Heroku Button 
Copyright Drecom Co., Ltd. All Rights Reserved.
௵ព䛾branch䜢Heroku䛻䝕䝥䝻䜲䛷䛝䜛 
● Pull Request䛾䛝䛶䛔䜛branch䜒⡆༢䛻Heroku䛻 
Deploy䛷䛝䜛 
● UI䛺䛹UnitTest䛷䜹䝞䞊䛷䛝䛺䛔㒊ศ䜢PullRequest 
༢఩䛷ே䛾┠䛷☜ㄆ...
ヲ䛧䛔䛣䛸 
● Deploy to Heroku / Web䜰䝥䝸䜿䞊䝅䝵䞁䛾䝫䞊䝍䝡䝸䝔䜱෌䜃 
- naoya䛾䛿䛶䛺䝎䜲䜰䝸䞊 
○ http://d.hatena.ne.jp/naoya/20140809/1407556488 
● ...
䜎䛸䜑 
● Ruby䛸ྠᵝGithub䜒䜶䝁䝅䝇䝔䝮䛜඘ᐇ䛧䛶䛔䜛 
● Public repository䛷䛒䜜䜀↓ᩱ䛷౑䛘䜛䛾䛷OSS䛻ඃ䛧䛔 
○ ↓ᩱ䛷౑䛘䜛䛾䛻౑䜟䛺䛔⌮⏤䛜䛹䛣䛻䜒䛺䛔 
● ௙஦䛷ᛁ䛧䛔䜣䛰䛛䜙㊃࿡䛷䛿ᴦ䜢䛩䜉䛝...
Upcoming SlideShare
Loading in …5
×

Githubエコシステムを活用したイマドキの趣味開発

  • Login to see the comments

Githubエコシステムを活用したイマドキの趣味開発

  1. 1. Githubエコシステムを活用した イマドキの趣味開発 @sue445 2014/09/24 開発部会 LT Copyright Drecom Co., Ltd. All Rights Reserved.
  2. 2. ⮬ᕫ⤂௓ sue445 ● drecom (2012 - ) ○ ♫ෆ䝒䞊䝹䛸䛛♫ෆ䝷䜲䝤䝷䝸䛸䛛䜲䞁䝣䝷䛸䛛 ● 䝗䝸䝁䝮Ṕ == RubyṔ == 2ᖺ䛱䜗䛔 ● ᰩ䛾ே ● 䝥䝸䜻䝳䜰䛾ே ● 䝃䝄䜶䛾ே ● RubyKaja 2014 Copyright Drecom Co., Ltd. All Rights Reserved.
  3. 3. Copyright Drecom Co., Ltd. All Rights Reserved. RubyKaja!! @RubyKaigi2014 http://kaja.rubyist.net/2014/kaja
  4. 4. Copyright Drecom Co., Ltd. All Rights Reserved. 今期の嫁: キュアハニー
  5. 5. Copyright Drecom Co., Ltd. All Rights Reserved. 本妻: キュアピース
  6. 6. ヰ䛩䛣䛸 ● ᭱㏆స䛳䛯䜰䝥䝸䛾⤂௓ ● Github㐃ᦠ䛧䛯䝃䞊䝡䝇䛾⤂௓ ○ 䝞䝑䝆䛷䝸䝫䝆䝖䝸䜢┠❧䛯䛫䜛 ○ ඲⮬ື䝔䝇䝖䠃䝕䝥䝻䜲 ○ 䝽䞁䜽䝸䝑䜽䝕䝥䝻䜲 ● 䜎䛸䜑 Copyright Drecom Co., Ltd. All Rights Reserved.
  7. 7. ᭱㏆స䛳䛯䜰䝥䝸䛾⤂௓ Copyright Drecom Co., Ltd. All Rights Reserved.
  8. 8. ᭱㏆స䛳䛯䜰䝥䝸䛾⤂௓ Gemoire (ジェモワール) http://gemoire.herokuapp.com/ https://github.com/sue445/gemoire Copyright Drecom Co., Ltd. All Rights Reserved.
  9. 9. ඲యീ 1. push 2. webhook Copyright Drecom Co., Ltd. All Rights Reserved. App doc 3. clone 5. browsing 4. generate
  10. 10. Gemoire ● ྡ๓䛾⏤᮶䛿Gem + Grimoire(㨱ᑟ᭩) ○ gem䛾ྲྀᢅㄝ᫂᭩䜢㞟䜑䛯ⓗ䛺ឤ䛨 ○ 䝆䜵䝮 + 䜾䝸䝰䝽䞊䝹 = 䝆䜵䝰䝽䞊䝹 ● gem䛾YARD䝗䜻䝳䝯䞁䝖䜢ᡭ㍍䛻බ㛤䛩䜛䛯䜑䛾䜰䝥䝸 ● git䛾URLⓏ㘓䛩䜛䛰䛡䛷຾ᡭ䛻䝗䜻䝳䝯䞁䝖⏕ᡂ ● Ruby 2.1.3 + Padrino 0.12.3 + activerecord 4.1.6 ㎶䜚 ● 䜰䝥䝸䛾ヲ⣽䛿௒ᅇ䛾ᮏ㢟䛷䛿䛺䛔䛾䛷䛣䜜௨ୖ䛾ㄝ᫂䛿๭ ឡ Copyright Drecom Co., Ltd. All Rights Reserved.
  11. 11. 䝞䝑䝆䛷䝸䝫䝆䝖䝸䜢┠❧䛯䛫䜛 Copyright Drecom Co., Ltd. All Rights Reserved.
  12. 12. 䝞䝑䝆䛷䝸䝫䝆䝖䝸䜢┠❧䛯䛫䜛 Copyright Drecom Co., Ltd. All Rights Reserved.
  13. 13. 䝞䝑䝆䛷䝸䝫䝆䝖䝸䜢┠❧䛯䛫䜛 CIの状態gemの最新率 Copyright Drecom Co., Ltd. All Rights Reserved. テストカバレッ ジ コードのスコア Ready状態の issueの数 デプロイボタン (後述)
  14. 14. 䝞䝑䝆䛷䝸䝫䝆䝖䝸䜢┠❧䛯䛫䜛 ● README䛿䝸䝫䝆䝖䝸䛾䝖䝑䝥䛻⾲♧䛥䜜䜛≉ู䛺䝣䜯䜲䝹 ● markdown䛷䛒䜜䜀⏬ീ䜒⾲♧䛷䛝䜛 ● github䛸㐃ᦠ䛧䛶䜛እ㒊䝃䞊䝡䝇䛿䛰䛔䛯䛔README䛻㈞䜛⏝ 䛾䝞䝑䝆䜒ᥦ౪䛧䛶䜛䛣䛸䛜ከ䛔 ● 㟼ⓗゎᯒ䛾⤖ᯝ䜢┠❧䛶䛫䜛䛣䛸䛷䛔䜝䛔䜝䜰䝢䞊䝹䛷䛝䜛 ○ ே䛛䜙ぢ䜙䜜䜛䛣䛸䜢ព㆑䛩䜛䛣䛸䛷䝁䞊䝗䜢⥡㯇䛻䛩䜛᪉ ྥ䛻ព㆑䛜ാ䛟 ● ヲ䛧䛟䛿ୗグ䜶䞁䝖䝸ཧ↷ ○ github䛷gem䜢බ㛤䛩䜛᫬䛻౑䛔䛯䛔䝞䝑䝆 - 䛟䜚䛻䛳䛝 ○ http://sue445.hatenablog. com/entry/2014/08/11/123000 Copyright Drecom Co., Ltd. All Rights Reserved.
  15. 15. 䝞䝑䝆䛷䝸䝫䝆䝖䝸䜢┠❧䛯䛫䜛 Copyright Drecom Co., Ltd. All Rights Reserved. Green = LGTM (Looks good to me) Orange =ちょい危険 Red = ヤバヤバイよ!
  16. 16. ඲⮬ື䝔䝇䝖䠃䝕䝥䝻䜲 Copyright Drecom Co., Ltd. All Rights Reserved.
  17. 17. Run test with each PR push Copyright Drecom Co., Ltd. All Rights Reserved. TEST FAILED
  18. 18. Run test with each PR push Copyright Drecom Co., Ltd. All Rights Reserved. TEST SUCCEESS
  19. 19. ୺䛺CaaS (CI as a Service) ● Travis CI (https://travis-ci.org/) ● Circle CI (https://circleci.com/) ● Wercker (http://wercker.com/) ඹ㏻Ⅼ ● github䛾䜰䜹䜴䞁䝖䛷䝻䜾䜲䞁䛧䛶タᐃ䜒䝽䞁䜽䝸䝑䜽 ● public repository䛺䜙↓ᩱ䛷౑䛘䜛 ● Pull Request䛥䜜䛯branch䛻ᑐ䛧䛶merge䛩䜛๓䛻䝔䝇䝖䜢ᐇ ⾜ ● ᚲせ䛷䛒䜜䜀䝔䝇䝖ᚋ䛻䝕䝥䝻䜲䜔䝏䝱䝑䝖㏻▱䜒䛷䛝䜛 ヲ䛧䛔ẚ㍑ http://atskimura.hatenablog.com/entry/2014/02/06/184048 Copyright Drecom Co., Ltd. All Rights Reserved.
  20. 20. Automation deploy Copyright Drecom Co., Ltd. All Rights Reserved. CI Test Test and Deploy
  21. 21. Automation deploy Copyright Drecom Co., Ltd. All Rights Reserved.
  22. 22. 䝽䞁䜽䝸䝑䜽䝕䝥䝻䜲 Copyright Drecom Co., Ltd. All Rights Reserved.
  23. 23. Deploy to Heroku Button Copyright Drecom Co., Ltd. All Rights Reserved.
  24. 24. 䝽䞁䜽䝸䝑䜽䝕䝥䝻䜲 Copyright Drecom Co., Ltd. All Rights Reserved.
  25. 25. ボタンをポチれば他の人のアプリを 自分のHerokuアカウントにデプロ イできる Copyright Drecom Co., Ltd. All Rights Reserved.
  26. 26. app.json(タᐃ䝣䜯䜲䝹) Copyright Drecom Co., Ltd. All Rights Reserved. デプロイ後に呼ばれ るコマンド heroku config add NAME=”value” 必要なアドオン(redisとか memcache)
  27. 27. Pull Request䛾branch䜢䝕䝥䝻䜲䛩䜛 Copyright Drecom Co., Ltd. All Rights Reserved. Pull Request出されている branch
  28. 28. branch䜢㑅ᢥ Copyright Drecom Co., Ltd. All Rights Reserved.
  29. 29. Deploy to Heroku Button Copyright Drecom Co., Ltd. All Rights Reserved.
  30. 30. ௵ព䛾branch䜢Heroku䛻䝕䝥䝻䜲䛷䛝䜛 ● Pull Request䛾䛝䛶䛔䜛branch䜒⡆༢䛻Heroku䛻 Deploy䛷䛝䜛 ● UI䛺䛹UnitTest䛷䜹䝞䞊䛷䛝䛺䛔㒊ศ䜢PullRequest ༢఩䛷ே䛾┠䛷☜ㄆ䛧䜔䛩䛟䛺䜛 Copyright Drecom Co., Ltd. All Rights Reserved.
  31. 31. ヲ䛧䛔䛣䛸 ● Deploy to Heroku / Web䜰䝥䝸䜿䞊䝅䝵䞁䛾䝫䞊䝍䝡䝸䝔䜱෌䜃 - naoya䛾䛿䛶䛺䝎䜲䜰䝸䞊 ○ http://d.hatena.ne.jp/naoya/20140809/1407556488 ● Creating a 'Deploy to Heroku' Button | Heroku Dev Center ○ https://devcenter.heroku.com/articles/heroku-button ● app.json Schema | Heroku Dev Center ○ https://devcenter.heroku.com/articles/app-json-schema Copyright Drecom Co., Ltd. All Rights Reserved.
  32. 32. 䜎䛸䜑 ● Ruby䛸ྠᵝGithub䜒䜶䝁䝅䝇䝔䝮䛜඘ᐇ䛧䛶䛔䜛 ● Public repository䛷䛒䜜䜀↓ᩱ䛷౑䛘䜛䛾䛷OSS䛻ඃ䛧䛔 ○ ↓ᩱ䛷౑䛘䜛䛾䛻౑䜟䛺䛔⌮⏤䛜䛹䛣䛻䜒䛺䛔 ● ௙஦䛷ᛁ䛧䛔䜣䛰䛛䜙㊃࿡䛷䛿ᴦ䜢䛩䜉䛝 ○ ⮬ศ䛜ᴦ䜢䛷䛝䜜䜀䜏䜣䛺䛜ᴦ䜢䛷䛝䜛 ● ▱䜙䛺䛔䛣䛸䜢▱䜛䛣䛸䛷᪂䛯䛺ᕤኵ䛜⏕䜎䜜䜛 Copyright Drecom Co., Ltd. All Rights Reserved.

×