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
Takafumi Yoshida
December 14, 2013
Technology
650
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
730
ECSとALBで始めるblue/greenデプロイメント
zephiransas
2
340
DynamoDB関連のアップデート紹介 #reinvent2018
zephiransas
0
820
CloudGarageでGitBucketサーバをたててみた
zephiransas
0
530
プログラマが知っておくといいかもしれない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
OPENLOGI Company Profile for engineer
hr01
1
62k
Datadog で実現するセキュリティ対策 ~オブザーバビリティとセキュリティを 一緒にやると何がいいのか~
a2ush
0
190
GitHub Advanced Security × Defender for Cloudで開発とSecOpsのサイロを超える: コードとクラウドをつなぐ、開発プラットフォームのセキュリティ
yuriemori
1
130
レガシーシステムをどう次世代に受け継ぐか
tachiiri
0
260
Webアクセシビリティは“もしも”に備える設計
tomokusaba
0
160
仕様通り動くの先へ。Claude Codeで「使える」を検証する
gotalab555
6
2k
組織的なAI活用を阻む 最大のハードルは コンテキストデザインだった
ixbox
1
470
あるアーキテクチャ決定と その結果/architecture-decision-and-its-result
hanhan1978
0
340
Oracle AI Database@AWS:サービス概要のご紹介
oracle4engineer
PRO
3
2.1k
Oracle Cloud Infrastructure(OCI):Onboarding Session(はじめてのOCI/Oracle Supportご利⽤ガイド)
oracle4engineer
PRO
2
17k
Kubernetes基盤における開発者体験 とセキュリティの両⽴ / Balancing developer experience and security in a Kubernetes-based environment
chmikata
0
170
Oracle AI Database@Azure:サービス概要のご紹介
oracle4engineer
PRO
5
1.4k
Featured
See All Featured
Git: the NoSQL Database
bkeepers
PRO
432
67k
Paper Plane
katiecoart
PRO
1
49k
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
500
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.2k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
10k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
1
170
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
95
VelocityConf: Rendering Performance Case Studies
addyosmani
333
25k
Bootstrapping a Software Product
garrettdimon
PRO
307
120k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.4k
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