Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Rails使いが教えるSkinny Framework
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Takafumi Yoshida
December 14, 2013
Technology
660
2
Share
Rails使いが教えるSkinny Framework
Takafumi Yoshida
December 14, 2013
More Decks by Takafumi Yoshida
See All by Takafumi Yoshida
ECSとSQSでスケーラブルなバッチを作った
zephiransas
2
1.4k
DynamoDB Step Zero to One
zephiransas
0
740
ECSとALBで始めるblue/greenデプロイメント
zephiransas
2
340
DynamoDB関連のアップデート紹介 #reinvent2018
zephiransas
0
820
CloudGarageでGitBucketサーバをたててみた
zephiransas
0
540
プログラマが知っておくといいかもしれないCSSのハナシ
zephiransas
1
1.1k
ラクして学ぶ英語(LT版)
zephiransas
0
210
あなたとCrystal、いますぐダウンロード
zephiransas
1
1.8k
使ってみようLombok
zephiransas
0
270
Other Decks in Technology
See All in Technology
AgentCore×VPCでの設計パターンn選と勘所
har1101
3
310
サイボウズ 開発本部採用ピッチ / Cybozu Engineer Recruit
cybozuinsideout
PRO
10
79k
No Types Needed, Just Callable Method Check
dak2
1
1.8k
Chasing Real-Time Observability for CRuby
whitegreen
0
250
Hacobu Tech Deck
hacobu
PRO
0
130
音声言語モデル手法に関する発表の紹介
kzinmr
0
130
Do Ruby::Box dream of Modular Monolith?
joker1007
1
350
Good Enough Types: Heuristic Type Inference for Ruby
riseshia
1
300
基盤を育てる 外部SaaS連携の運用
gamonges_dresscode
1
120
AgentCore Managed Harness を使ってみよう
yakumo
2
230
Keeping Ruby Running on Cygwin
fd0
0
180
Rapid Start: Faster Internet Connections, with Ruby's Help
kazuho
2
770
Featured
See All Featured
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
61
43k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.3k
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
340
Building an army of robots
kneath
306
46k
Everyday Curiosity
cassininazir
0
200
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
First, design no harm
axbom
PRO
2
1.2k
Crafting Experiences
bethany
1
120
Utilizing Notion as your number one productivity tool
mfonobong
4
290
Git: the NoSQL Database
bkeepers
PRO
432
67k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
120
The Curious Case for Waylosing
cassininazir
0
320
Transcript
Rails使いが教える Skinny Framework 岡山Javaユーザ会 吉田貴文(@zephiransas)
What’s Skinny
What’s Skinny? •ScalaのWebフレームワーク •主に@seratchさんが開発 •フルスタック •自作しすぎない •Scala on Rails •http://skinny-framework.org/
導入と Scaffoldまで
導入とScaffold •公式からskinny-blank-app.zipを取得 •unzip •./skinny g scaffold members member [fields...] •./skinny
db:migrate •./skinny run
Yeomanから導入 •npm install -g yo •npm install generator-skinny •yo skinny
•./skinny run
Demonstration
•run (=rails s) •console (=rails c) •g controller/model/migration •db:migrate •eclipse/idea/gen-idea
skinny command
Controller
Controller •ベースはScalatra •Scala版のSinatra •RoR linkなRouting •SkinnyController •SkinnyResourceはCRUDを簡単に作れ る
controller/Controllers.scala
controller/ EmployeesController.scala
Model
Modelの基礎 •ベースはScalikeJDBC •SkinnyCRUDMapper
None
select
insert,update,delete
DB スキーマ 管理
DBスキーマ管理 •Flyway •develop,test,production等で分けられ る •./skinny g migration •生成されたsqlファイルを修正 •./skinny db:migrate
Testing Support
Testing Support •ScalaTest or specs2 •ControllerのテストはScalatraの仕組 みをそのまま使う •fixtureにはFactoryGirl
Conclusion •Ruby on Rails っぽいのが好き •フルスタックなのがいい •それなりに速度は出てる感
Thank you for your attention