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
Yesod で Blog Engine つくってみた
Search
Hiromi Ishii
April 21, 2012
Technology
2
130
Yesod で Blog Engine つくってみた
Hiromi Ishii
April 21, 2012
Tweet
Share
More Decks by Hiromi Ishii
See All by Hiromi Ishii
大規模数値計算を支える Haskell ── Pragmatic Haskell in Large-Scale Numerical Computation──
konn
3
3.6k
The Great Power of newtypes
konn
3
3.8k
本当はすごい newtype
konn
10
2.4k
わかったつもりになる Gröbner 基底
konn
5
960
Other Decks in Technology
See All in Technology
AWS Lambdaと歩んだ“サーバーレス”と今後 #lambda_10years
yoshidashingo
1
170
これまでの計測・開発・デプロイ方法全部見せます! / Findy ISUCON 2024-11-14
tohutohu
3
360
Amazon CloudWatch Network Monitor のススメ
yuki_ink
1
200
Shopifyアプリ開発における Shopifyの機能活用
sonatard
4
250
誰も全体を知らない ~ ロールの垣根を超えて引き上げる開発生産性 / Boosting Development Productivity Across Roles
kakehashi
1
220
dev 補講: プロダクトセキュリティ / Product security overview
wa6sn
1
2.3k
Amplify Gen2 Deep Dive / バックエンドの型をいかにしてフロントエンドへ伝えるか #TSKaigi #TSKaigiKansai #AWSAmplifyJP
tacck
PRO
0
370
Application Development WG Intro at AppDeveloperCon
salaboy
0
180
AWS Lambda のトラブルシュートをしていて思うこと
kazzpapa3
2
170
【Startup CTO of the Year 2024 / Audience Award】アセンド取締役CTO 丹羽健
niwatakeru
0
930
Security-JAWS【第35回】勉強会クラウドにおけるマルウェアやコンテンツ改ざんへの対策
4su_para
0
170
インフラとバックエンドとフロントエンドをくまなく調べて遅いアプリを早くした件
tubone24
1
430
Featured
See All Featured
Facilitating Awesome Meetings
lara
50
6.1k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Designing the Hi-DPI Web
ddemaree
280
34k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
246
1.3M
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
506
140k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.4k
Intergalactic Javascript Robots from Outer Space
tanoku
269
27k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
Docker and Python
trallard
40
3.1k
Optimising Largest Contentful Paint
csswizardry
33
2.9k
The Power of CSS Pseudo Elements
geoffreycrofte
73
5.3k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
250
21k
Transcript
Yesod Ͱ Blog Engine Λͭͬͯ͘Έͨ @mr_konn 20124݄22༵
ࣗݾհ • @mr_konn • ֶՊࡾ • auehtnticate-oauth / yesod-auth-oauth ϝϯςφ
• ϒϩάɿhttp://blog.konn-san.com • Powered by Yesod & Mighty • ͜Ε࡞ͬͨͱ͖ͷ͠·͢ 20124݄22༵
Yablog: Yet Another Blog-engine 20124݄22༵
Yablog: Yet Another Blog-engine • ϒϩάͱͯ͠Ұ௨Γͷػೳ 20124݄22༵
Yablog: Yet Another Blog-engine • ϒϩάͱͯ͠Ұ௨Γͷػೳ • ෳਓࣥච / ίϝϯτ
/ τϥοΫόοΫ / Real Time Preview / λά / ϑΟʔυ / ίϝϯτ௨ 20124݄22༵
Yablog: Yet Another Blog-engine • ϒϩάͱͯ͠Ұ௨Γͷػೳ • ෳਓࣥච / ίϝϯτ
/ τϥοΫόοΫ / Real Time Preview / λά / ϑΟʔυ / ίϝϯτ௨ • ΣϒαʔϏεͱͷ࿈ܞ 20124݄22༵
Yablog: Yet Another Blog-engine • ϒϩάͱͯ͠Ұ௨Γͷػೳ • ෳਓࣥච / ίϝϯτ
/ τϥοΫόοΫ / Real Time Preview / λά / ϑΟʔυ / ίϝϯτ௨ • ΣϒαʔϏεͱͷ࿈ܞ • SocialɿTwitter / ͯϒ / ͯελ / G+ / ͍͍Ͷʂ 20124݄22༵
Yablog: Yet Another Blog-engine • ϒϩάͱͯ͠Ұ௨Γͷػೳ • ෳਓࣥච / ίϝϯτ
/ τϥοΫόοΫ / Real Time Preview / λά / ϑΟʔυ / ίϝϯτ௨ • ΣϒαʔϏεͱͷ࿈ܞ • SocialɿTwitter / ͯϒ / ͯελ / G+ / ͍͍Ͷʂ • Google CSE / Google Analytics / Amazon Associates 20124݄22༵
Yablog: Yet Another Blog-engine • ϒϩάͱͯ͠Ұ௨Γͷػೳ • ෳਓࣥච / ίϝϯτ
/ τϥοΫόοΫ / Real Time Preview / λά / ϑΟʔυ / ίϝϯτ௨ • ΣϒαʔϏεͱͷ࿈ܞ • SocialɿTwitter / ͯϒ / ͯελ / G+ / ͍͍Ͷʂ • Google CSE / Google Analytics / Amazon Associates • ଟ͘ͷϚʔΫΞοϓݴޠɺ Syntax Colouring Λαϙʔτ 20124݄22༵
Yablog: Yet Another Blog-engine • ϒϩάͱͯ͠Ұ௨Γͷػೳ • ෳਓࣥච / ίϝϯτ
/ τϥοΫόοΫ / Real Time Preview / λά / ϑΟʔυ / ίϝϯτ௨ • ΣϒαʔϏεͱͷ࿈ܞ • SocialɿTwitter / ͯϒ / ͯελ / G+ / ͍͍Ͷʂ • Google CSE / Google Analytics / Amazon Associates • ଟ͘ͷϚʔΫΞοϓݴޠɺ Syntax Colouring Λαϙʔτ • MathJax ʹΑΔඒ͍ࣜ͠ 20124݄22༵
ཉ͍͠ػೳɺ Ұ௨Γɻ 20124݄22༵
ཉ͍͠ͷ ࡞Ζ͏ʂ 20124݄22༵
࡞Δͷ େม……ʁ 20124݄22༵
ͦΜͳ͜ͱͳ͍ʂ 20124݄22༵
͔ͭͬͨͷ 20124݄22༵
͔ͭͬͨͷ • Yesod 20124݄22༵
͔ͭͬͨͷ • Yesod • Google Analytics ࠷ॳ͔Βαϙʔτ 20124݄22༵
͔ͭͬͨͷ • Yesod • Google Analytics ࠷ॳ͔Βαϙʔτ • ඇಉظ൛ʹॻ͖͑·ͨ͠ɻ 20124݄22༵
͔ͭͬͨͷ • Yesod • Google Analytics ࠷ॳ͔Βαϙʔτ • ඇಉظ൛ʹॻ͖͑·ͨ͠ɻ •
Newsfeed ͷੜࠃࡍԽָνϯ 20124݄22༵
͔ͭͬͨͷ • Yesod • Google Analytics ࠷ॳ͔Βαϙʔτ • ඇಉظ൛ʹॻ͖͑·ͨ͠ɻ •
Newsfeed ͷੜࠃࡍԽָνϯ • ೝূػߏ͖ͳͷΛ͑Δ 20124݄22༵
͔ͭͬͨͷ • Yesod • Google Analytics ࠷ॳ͔Βαϙʔτ • ඇಉظ൛ʹॻ͖͑·ͨ͠ɻ •
Newsfeed ͷੜࠃࡍԽָνϯ • ೝূػߏ͖ͳͷΛ͑Δ • Yablog Ͱͦͷ·· Google ͔ BrowserId 20124݄22༵
͔ͭͬͨͷ • Yesod • Google Analytics ࠷ॳ͔Βαϙʔτ • ඇಉظ൛ʹॻ͖͑·ͨ͠ɻ •
Newsfeed ͷੜࠃࡍԽָνϯ • ೝূػߏ͖ͳͷΛ͑Δ • Yablog Ͱͦͷ·· Google ͔ BrowserId • HashDB ͱ͔ͷ͕Α͔͔ͬͨͳ͊ɻ 20124݄22༵
͔ͭͬͨͷʢଓʣ 20124݄22༵
͔ͭͬͨͷʢଓʣ • Pandoc 20124݄22༵
͔ͭͬͨͷʢଓʣ • Pandoc • Markdown (+lhs) / ReST / HTML
/ TeX… 20124݄22༵
͔ͭͬͨͷʢଓʣ • Pandoc • Markdown (+lhs) / ReST / HTML
/ TeX… • ϚʔΫΞοϓͷύʔζ&HTMLܗʹ 20124݄22༵
͔ͭͬͨͷʢଓʣ • Pandoc • Markdown (+lhs) / ReST / HTML
/ TeX… • ϚʔΫΞοϓͷύʔζ&HTMLܗʹ • HTML Yesodͱڞ௨ͷ blaze Λར༻ 20124݄22༵
͔ͭͬͨͷʢଓʣ • Pandoc • Markdown (+lhs) / ReST / HTML
/ TeX… • ϚʔΫΞοϓͷύʔζ&HTMLܗʹ • HTML Yesodͱڞ௨ͷ blaze Λར༻ • highlighting-kate 20124݄22༵
͔ͭͬͨͷʢଓʣ • Pandoc • Markdown (+lhs) / ReST / HTML
/ TeX… • ϚʔΫΞοϓͷύʔζ&HTMLܗʹ • HTML Yesodͱڞ௨ͷ blaze Λར༻ • highlighting-kate • γϯλοΫεΧϥʔϦϯάɻ 20124݄22༵
͔ͭͬͨͷʢଓʣ • Pandoc • Markdown (+lhs) / ReST / HTML
/ TeX… • ϚʔΫΞοϓͷύʔζ&HTMLܗʹ • HTML Yesodͱڞ௨ͷ blaze Λར༻ • highlighting-kate • γϯλοΫεΧϥʔϦϯάɻ • Yablog Ͱୟ͍͍ͯ·͕͢ɺPandoc ͔Βୟ͚ Δɻ 20124݄22༵
Amazon Associates • Pandoc + SYB ͷҖྗ • URL Λݟ͚ͨΒ
Amazon ͔Ͳ͏͔ ఆɺࣗಈͰΞϑΟϦϯΫԽ 20124݄22༵
͔ͭͬͨͷ 20124݄22༵
͔ͭͬͨͷ • MongoDB 20124݄22༵
͔ͭͬͨͷ • MongoDB • όοΫΤϯυɻϞμϯʂ 20124݄22༵
͔ͭͬͨͷ • MongoDB • όοΫΤϯυɻϞμϯʂ • Day TimeOfDay Λͦͷ··Ͱอ
ଘͰ͖ͳ͍ͷͰҙʂ 20124݄22༵
͔ͭͬͨͷ • MongoDB • όοΫΤϯυɻϞμϯʂ • Day TimeOfDay Λͦͷ··Ͱอ
ଘͰ͖ͳ͍ͷͰҙʂ • auth ͷֻ͔ͬͨDBʹΞΫηεग़དྷͳ ͍ʁ 20124݄22༵
͔ͭͬͨͷ • Bootstrap • ͓खܰʹ Twitter ϞυΩͷWeb UI Λʂ •
࠷৽ͷ Yesod ͔Βಉࠝ……ʁ 20124݄22༵
͔ͭͬͨͷ 20124݄22༵
͔ͭͬͨͷ • Mighty • @kazu_yamamoto ͞ΜͷHTTPαʔό • Reverse Proxy ΛͬͯαϒυϝΠϯ
Ͱӡ༻͍ͯ͠Δ 20124݄22༵
ࠓޙͷ༧ఆ • τϥόඈ͢ػೳ • ໘ͳͷͰ࡞ͬͯͳ͔ͬͨʈʈʀ • ը૾ͷຒΊࠐΈ • Ͳ͜ʹͲ͏อଘ͖͢ʁ •
JavaScript ॏ͍ͷΛԿͱ͔͢Δ • దʹಥͬࠐΜͩΒಡΈࠐΈ͕ੌ͍͘……ɻ • USTҎ֎ͷ࣌ؒଳͷαϙʔτ 20124݄22༵
ॴ • ϨϙδτϦɿhttp://gitweb.konn-san.com/ repo/Yablog/tree/master • ͜ͷϨϙδτϦ Yesod ΞϓϦ • ·ͩൃల్্ͳͷͰɺཁ͕͋Ε
GitHub ͷํʹϨϙ࡞Γ·͢ 20124݄22༵
·ͱΊ • Haskell ʹࢁͷϥΠϒϥϦ͕͋Δ • Έ߹Θ͍ͤͯΔͱ͍ͭͷؒʹ͔ ͍ͯ͠Δ • ཉ͍͠ͷΛ࡞ΕΔʂ 20124݄22༵
Any Questions? 20124݄22༵
ޚਗ਼ௌ ͋Γ͕ͱ͏͍͟͝·ͨ͠ 20124݄22༵