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.
LOUPE Study #1
★おねがい★
リモートプレゼン 
結構寂しいので 
いつもよりリアクション大きめで 
お願いします!
Sinatra 
軽量Web開発
Sinatra 
軽量Web開発 
Speaker: 
Engineer Team" 
Takuya Mukohira(MK) 
2014/09/08" 
LOUPE Study #1
Ruby 
on 
Rails
人類はRailsに乗ることによって 
大規模なWebアプリケーション 
を 
効率的に開発する事が 
可能になった。
on Rails
Ruby on RailsによるWeb開発 
設定より規約(CoC) 
同じ作業を繰り返さない(DRY) 
MVCモデル 
Railsに乗ってしまえば、 
サクサクと開発ができる!
Ruby on RailsによるWeb開発 
何をするにも rails generate … 
知っておくべき規約がたくさん 
(Ex. モデル名は単数形、 
   URLも好きに決められない… 
「これってModelに書くの?Controll...
Railsに乗ると 
 コストがかかる…
Railsに乗る必要、 
ある?
Railsに乗る必要の 
無い例
都会人「1駅くらい歩くか」
Railsに乗る必要、 
本当にある?
Railsに乗る必要の無い例 
• ページ遷移少なめ 
• deviceとかrails_adminとか使わない 
• Active RecordやAction Mailerを使わない
Ruby 
on 
Other Ways…
もし、あなたが 
Railsに乗る必要が無いならば…
Sinatrahttp://www.sinatrarb.com/
First App
First App 
$ ruby app.rb 
$ open http://localhost:4567
ちょっとまじめにやる場合
ちょっとまじめにやる場合 
← Controller 
← 設定ファイル 
← ドキュメントルート 
← views
app.rb(Controller)
app.rb(Controller) 
↓GETで 
← ‘/‘ にアクセスすると 
↑このブロックを実行する。
views 
← views/layout.erb 
views/index.erb 
↓
Awesome :)
豊富なテンプレートエンジン
豊富なテンプレートエンジン 
SCSS 
Coffee Script 
にも対応
ちょっとしたモノ 
を 
作るのに便利
ちょっとしたモノの例 
$ open http://mktakuya.net
" 
 http://mktakuya.net/ 
超小機能Webサイト 
Active Record未使用 
テンプレートエンジンは 
Erbを使用。 
CSSフレームワークには 
Bootstrap 3 
SCSS使用
Poke to MK
Poke to MK 
寝坊したMKを叩き起こす 
学校に来ないMKを叩き起こす 
仕事中に昼寝しにいったMKを叩き起こす
Powerd by
Controller
Controller 
簡単なロジックを組み込める!!
SinatraでWeb開発 
• 簡単なサイトなら、Railsに乗る必要は無い。 
• 軽めのフレームワークを使おう! 
• そんな時にSinatraが便利なんですよ。
軽量かつシンプルなので 
ハードウェアに組み込むのもアリ!?
Sinatra 
軽量Web開発 
Speaker: 
Engineer Team" 
Takuya Mukohira(MK)
Thank You
Sinatra軽量Web開発 - LOUPE Study #1
Sinatra軽量Web開発 - LOUPE Study #1
Sinatra軽量Web開発 - LOUPE Study #1
Sinatra軽量Web開発 - LOUPE Study #1
Sinatra軽量Web開発 - LOUPE Study #1
Sinatra軽量Web開発 - LOUPE Study #1
Sinatra軽量Web開発 - LOUPE Study #1
Upcoming SlideShare
Loading in …5
×

Sinatra軽量Web開発 - LOUPE Study #1

2,663 views

Published on

株式会社LOUPE エンジニアチームの勉強会「LOUPE Study」の発表資料です。
第一回目の担当は僕。
テーマは「SinatraでのWeb開発について」でした。

Published in: Technology
  • DOWNLOAD THI5 BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m77EgH } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m77EgH } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m77EgH } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m77EgH } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m77EgH } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Sinatra軽量Web開発 - LOUPE Study #1

  1. 1. LOUPE Study #1
  2. 2. ★おねがい★
  3. 3. リモートプレゼン 結構寂しいので いつもよりリアクション大きめで お願いします!
  4. 4. Sinatra 軽量Web開発
  5. 5. Sinatra 軽量Web開発 Speaker: Engineer Team" Takuya Mukohira(MK) 2014/09/08" LOUPE Study #1
  6. 6. Ruby on Rails
  7. 7. 人類はRailsに乗ることによって 大規模なWebアプリケーション を 効率的に開発する事が 可能になった。
  8. 8. on Rails
  9. 9. Ruby on RailsによるWeb開発 設定より規約(CoC) 同じ作業を繰り返さない(DRY) MVCモデル Railsに乗ってしまえば、 サクサクと開発ができる!
  10. 10. Ruby on RailsによるWeb開発 何をするにも rails generate … 知っておくべき規約がたくさん (Ex. モデル名は単数形、    URLも好きに決められない… 「これってModelに書くの?Controllerに書くの?」 Railsに乗るのって 結構大変…
  11. 11. Railsに乗ると  コストがかかる…
  12. 12. Railsに乗る必要、 ある?
  13. 13. Railsに乗る必要の 無い例
  14. 14. 都会人「1駅くらい歩くか」
  15. 15. Railsに乗る必要、 本当にある?
  16. 16. Railsに乗る必要の無い例 • ページ遷移少なめ • deviceとかrails_adminとか使わない • Active RecordやAction Mailerを使わない
  17. 17. Ruby on Other Ways…
  18. 18. もし、あなたが Railsに乗る必要が無いならば…
  19. 19. Sinatrahttp://www.sinatrarb.com/
  20. 20. First App
  21. 21. First App $ ruby app.rb $ open http://localhost:4567
  22. 22. ちょっとまじめにやる場合
  23. 23. ちょっとまじめにやる場合 ← Controller ← 設定ファイル ← ドキュメントルート ← views
  24. 24. app.rb(Controller)
  25. 25. app.rb(Controller) ↓GETで ← ‘/‘ にアクセスすると ↑このブロックを実行する。
  26. 26. views ← views/layout.erb views/index.erb ↓
  27. 27. Awesome :)
  28. 28. 豊富なテンプレートエンジン
  29. 29. 豊富なテンプレートエンジン SCSS Coffee Script にも対応
  30. 30. ちょっとしたモノ を 作るのに便利
  31. 31. ちょっとしたモノの例 $ open http://mktakuya.net
  32. 32. "  http://mktakuya.net/ 超小機能Webサイト Active Record未使用 テンプレートエンジンは Erbを使用。 CSSフレームワークには Bootstrap 3 SCSS使用
  33. 33. Poke to MK
  34. 34. Poke to MK 寝坊したMKを叩き起こす 学校に来ないMKを叩き起こす 仕事中に昼寝しにいったMKを叩き起こす
  35. 35. Powerd by
  36. 36. Controller
  37. 37. Controller 簡単なロジックを組み込める!!
  38. 38. SinatraでWeb開発 • 簡単なサイトなら、Railsに乗る必要は無い。 • 軽めのフレームワークを使おう! • そんな時にSinatraが便利なんですよ。
  39. 39. 軽量かつシンプルなので ハードウェアに組み込むのもアリ!?
  40. 40. Sinatra 軽量Web開発 Speaker: Engineer Team" Takuya Mukohira(MK)
  41. 41. Thank You

×