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
Titanium ならここまでできる !! Serverside non-programing...
Search
astronaughts
August 13, 2012
Technology
1
330
Titanium ならここまでできる !! Serverside non-programing で作る お手軽 Social Application
「サンプルアプリでデモ」の部分の内容はありません。
astronaughts
August 13, 2012
Tweet
Share
More Decks by astronaughts
See All by astronaughts
Sublime Text の プラグイン開発の方法
astronaughts
0
470
Package と Theme の作り方と PackageControl 登録までの道のり
astronaughts
0
330
Sublime Text を 俺色に染める方法
astronaughts
2
850
GRUNT のあんなこといいなできたらいいな
astronaughts
14
2.2k
Re:Development of ChatWork Apps
astronaughts
1
2.1k
Rapid Prototyping by TiShadow
astronaughts
4
2.8k
Sublime Text 2 for PHP Development
astronaughts
0
230
Fathm Like ScrollableView Implementaion for TItanium mobile
astronaughts
3
3.8k
Other Decks in Technology
See All in Technology
キーワードの再整理のススメ ~テストタイプ/テストレベルで最適化!~/20241025 Midori Inada
shift_evolve
0
120
ABEMA のコンテンツ制作を最適化!生成 AI x クラウド映像編集システム / abema-ai-editor
cyberagentdevelopers
PRO
1
130
わたしとトラックポイント / TrackPoint tips
masahirokawahara
1
200
CyberAgent 生成AI Deep Dive with Amazon Web Services / genai-aws
cyberagentdevelopers
PRO
1
360
Data Migration on Rails
ohbarye
7
4.5k
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
5
49k
pandasはPolarsに性能面で追いつき追い越せるのか
vaaaaanquish
2
1.1k
ExaDB-D dbaascli で出来ること
oracle4engineer
PRO
0
3.6k
AIを使って小説を書こう!【2024/10/25講演資料】
kamomeashizawa
0
160
Comparing Apache Flink and Spark for Modern Stream Data Processing
sharonx
0
180
端末が簡単にリモートから操作されるデモを通じて ソフトウェアサプライチェーン攻撃対策の重要性を理解しよう
kitaji0306
0
150
来年もre:Invent2024 に行きたいあなたへ - “集中”と“つながり”で楽しむ -
ny7760
0
110
Featured
See All Featured
Art, The Web, and Tiny UX
lynnandtonic
296
20k
[RailsConf 2023] Rails as a piece of cake
palkan
51
4.8k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
31
2.6k
Why Our Code Smells
bkeepers
PRO
334
57k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
167
49k
Optimising Largest Contentful Paint
csswizardry
33
2.9k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
159
15k
Done Done
chrislema
181
16k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5k
How to Ace a Technical Interview
jacobian
275
23k
GraphQLの誤解/rethinking-graphql
sonatard
66
9.9k
Rails Girls Zürich Keynote
gr2m
93
13k
Transcript
Ti.Developers.meeting vol.5 in Kyoto @astronaughts TitaniumͳΒ͜͜·ͰͰ͖Δ Serverside non-programingͰ࡞Δ ͓खܰSocial Application
20128݄13݄༵
Profile Ti.Developers.meeting vol.5 in Kyoto 20128݄13݄༵
Profile ͏͑ͷ·͞ͻΖ astronaughts t i am Developer Ti.Developers.meeting vol.5 in
Kyoto 20128݄13݄༵
Profile ͏͑ͷ·͞ͻΖ ࣄͰओʹ WebService ͷ։ൃʢPython / Djangoʣ Titanium ࠓͷͱ͜Ζझຯɺࣾ Project
Ͱ͍͍ͨ Titanium ྺ 1 ऑ Titanium ͰϦϦʔεͨ͠ΞϓϦ 0 Ti.Developers.meeting vol.5 in Kyoto 20128݄13݄༵
Titanium ͰϦϦʔεͨ͠ΞϓϦ 0 Ti.Developers.meeting vol.5 in Kyoto 20128݄13݄༵
0 Ti.Developers.meeting vol.5 in Kyoto 20128݄13݄༵
(´ɾωɾ`) Ti.Developers.meeting vol.5 in Kyoto 20128݄13݄༵
Agenda Ti.Developers.meeting vol.5 in Kyoto 20128݄13݄༵
Agenda - ACS Ͱ Sreverside non-programming Ͱ։ൃ - SingOn ͷ۩ମతͳ։ൃखॱ
- ACS ͬͯͯݱ࣌ͷϝϦοτʗσϝϦοτ - ͓·͚ Ti.Developers.meeting vol.5 in Kyoto 20128݄13݄༵
Agenda - ACS Ͱ Sreverside non-programming Ͱ։ൃ - αϯϓϧΞϓϦͰσϞ -
ACS ͬͯͯݱ࣌ͷϝϦοτʗσϝϦοτ Ti.Developers.meeting vol.5 in Kyoto 20128݄13݄༵
ACS ͱʁ Ti.Developers.meeting vol.5 in Kyoto 20128݄13݄༵
ACS ͱʁ Appcelerator ͕ఏڙ͢Δ Titanium ͷͨΊͷ BaaS Titanium SDK 2.0
͔Βొ API ͕ॆ࣮͍ͯͯ͠ Titanium Ҏ֎͔Βར༻Մೳ Web ্Ͱσʔλͷཧ͕ग़དྷΔ ͔͠ҰఆྔͷΞΫηεͳΒແྉɻஅવ͓ಘʂ Ti.Developers.meeting vol.5 in Kyoto 20128݄13݄༵
BaaS ͱʁ Ti.Developers.meeting vol.5 in Kyoto 20128݄13݄༵
BaaS ͱʁ ຊདྷɺϞόΠϧΞϓϦ։ൃʹඞཁͩͬͨόοΫΤϯυ෦Λ ఏڙͯ͘͠ΕΔ৽͍͠αʔϏε - Ϣʔβʔཧ - σʔλετΞ - ֤छιʔγϟϧαʔϏεͱͷ࿈ܞ
- ϩέʔγϣϯ࿈ܞ ఏڙ͞ΕΔओͳػೳ ͭ·ΓίϨΛར༻͢ΕαʔόʔαΠυͷ։ൃෆཁʂʁ Ti.Developers.meeting vol.5 in Kyoto 20128݄13݄༵
ACS Ͱग़དྷΔ͜ͱ Ti.Developers.meeting vol.5 in Kyoto 20128݄13݄༵
۩ମతʹɾɾɾ http://www.appcelerator.com/cloud Ti.Developers.meeting vol.5 in Kyoto ACS Ͱग़དྷΔ͜ͱ 20128݄13݄༵
API ͷछྨ Ti.Developers.meeting vol.5 in Kyoto ACS Ͱग़དྷΔ͜ͱ - Ϣʔβʔ
- ࣸਅσʔλ - Push σʔλ - ϝʔϧςϯϓϨʔτ - ΧελϜΦϒδΣΫτʢJSONʣ - Key - Value Tier 1 APIs - Ґஔใ - Statusɹ - Postɹ - ... ͦͷଞ͍Ζ͍Ζ Tier 2 APIs ଟ͍ͷͰলུɺTier 1 APIs Ͱ͍͍ͩͨ OK ͪΌ͏ʁ 20128݄13݄༵
ؾʹͳΔແྉ Ti.Developers.meeting vol.5 in Kyoto ACS Ͱग़དྷΔ͜ͱ ͍ͮΕ͔Λ͑Δͱ STOP ...
ʢʈpʈʣ 250,000 Tier 1 APIs calls 250,000 Tier 2 APIs calls 5 GB strage Quotas are per month 20128݄13݄༵
͑ͦ͏ͳ߹ɺՃͰΛߪೖͰ͖Δ Ti.Developers.meeting vol.5 in Kyoto ACS Ͱग़དྷΔ͜ͱ ίϨͳΒ͓খݣ͍ͰͳΜͱ͔ͳΔʂʘʢʈ0ʈʣʗ + 1,000,000
Tier 1 APIs calls / $10 + 500,000 Tier 2 APIs calls / $10 + 20 GB strage / $5 Quotas are per month 20128݄13݄༵
ACS ΛͬͯΈΔ Ti.Developers.meeting vol.5 in Kyoto 20128݄13݄༵
ACS ΛͬͯΈΔ Ti.Developers.meeting vol.5 in Kyoto Titanium Studio ͔Β৽ن Project
࡞࣌ ͜ͷը໘Ͱ༗ޮʗແޮΛઃఆͰ͖Δ ͜Ε͚ͩ ޙී௨ʹ։ൃ 20128݄13݄༵
ιʔεϨϕϧͷղઆ Ti.Developers.meeting vol.5 in Kyoto ACS ΛͬͯΈΔ Cloud = require('ti.cloud');
// ϞδϡʔϧΛಡΈࠐΉ ϞδϡʔϧͷಡΈࠐΈ ࣮ ACS ༗ޮԽͨ࣌͠Ͱɺ tiapp.xml ʹ ti.cloud ͕ࣗಈతʹಡΈࠐ·Ε͍ͯΔ 20128݄13݄༵
ιʔεϨϕϧͷղઆ Ti.Developers.meeting vol.5 in Kyoto ACS ΛͬͯΈΔ Cloud.Users.login(function(res){ ɹɹ... });ɹ
Cloud.Users.logout(function(res){ ɹɹ... });ɹ API ͷར༻ ... ϩάΠϯʗϩάΞτ ACS ͷ֤ API ΞΫηε͢Δʹ·ͣϩάΠϯ͢Δඞཁ͕͋Δ ※ Ұ෦ೝূͳͯ͘ΞΫηεՄೳͳͷ͋Δ 20128݄13݄༵
ιʔεϨϕϧͷղઆ Ti.Developers.meeting vol.5 in Kyoto ACS ΛͬͯΈΔ var params =
{ɹ ɹɹclassname: ‘favorite_players’, ɹɹwhere: { user_id: ‘4ff3e0e10020441805003a61’ }, };ɹ Cloud.Objects.query(params, function(res){ɹ ɹɹif (res.success) ɹɹɹɹTi.API.info(res.favorite_players); }); API ͷར༻ ... ΧελϜΦϒδΣΫτͷऔಘ 20128݄13݄༵
Ti.Developers.meeting vol.5 in Kyoto ACS ΛͬͯΈΔ { success: 1, error:
0, meta: { code: 200, method_name: 'queryCustomObjects', page: 2, per_page: 10, status: 'ok', total_pages: 2, total_results: 12, }, favorite_players: [ { id: '4feaf1e70020447dd304cfd0', name: 'Randy W Bass', number: 44, created_at: '2012-06-27T11:43:35+0000', updated_at: '2012-06-27T11:43:35+0000', user: { ... }, }, API ͷར༻ ... ΧελϜΦϒδΣΫτͷऔಘ݁Ռ 20128݄13݄༵
ιʔεϨϕϧͷղઆ Ti.Developers.meeting vol.5 in Kyoto ACS ΛͬͯΈΔ Cloud.Objects.query Ͱ where
Ҏ֎ʹࢦఆͰ͖Δ݅ - ݁Ռͷιʔτ ... order order: ‘created_at’ // ࡞ॱ - ϖʔδ ... page page: 2 // 2 ϖʔδΛऔಘ - 1 ϖʔδ͋ͨΓͷऔಘ݅ ... per_page per_page: 15 // 1 ϖʔδ͋ͨΓσʔλΛ 15 ݅ͣͭऔಘ 20128݄13݄༵
ιʔεϨϕϧͷղઆ Ti.Developers.meeting vol.5 in Kyoto ACS ΛͬͯΈΔ var params =
{ɹ ɹɹclassname: ‘favorite_players’, ɹɹfields: { name: ‘Randy W Bass’, number: 44 }, };ɹ Cloud.Objects.create(params, function(res){ɹ ɹɹif (res.success) ɹɹɹɹTi.API.info(res.favorite_players); }); API ͷར༻ ... ΧελϜΦϒδΣΫτͷ৽نొ 20128݄13݄༵
ιʔεϨϕϧͷղઆ Ti.Developers.meeting vol.5 in Kyoto ACS ΛͬͯΈΔ API ͷར༻ ...
ΧελϜΦϒδΣΫτͷߋ৽ɺআ var params = { classname: ‘favorite_players’, fields: { name: ‘Randy W Bass’, number: 44 }, }; Cloud.Objects.update(params, function(res){ ... }); var params = { classname: ‘favorite_players’, id: '4feaf1e70020447dd304cfd0', }; Cloud.Objects.delete(params, function(res){ ... }); 20128݄13݄༵
ACS ͷσʔλཧ Ti.Developers.meeting vol.5 in Kyoto 20128݄13݄༵
Web ϕʔε GUI ... Appcelerator ͷαΠτ্ Ti.Developers.meeting vol.5 in Kyoto
ACS ͷσʔλཧ ͳ͍͠ΐ— 20128݄13݄༵
͚ͬ͜͏͔ͬ͠Γͨ͠࡞ΓͰɺϩάͳͲͷӾཡͰ͖Δ Ti.Developers.meeting vol.5 in Kyoto ACS ͷσʔλཧ 20128݄13݄༵
ͩɺ͕ͩɺΊͪΌͪ͘Όॏ͍ͧ Ti.Developers.meeting vol.5 in Kyoto 20128݄13݄༵
ACS ·ͱΊ Ti.Developers.meeting vol.5 in Kyoto 20128݄13݄༵
Ti.Developers.meeting vol.5 in Kyoto ACS ·ͱΊ Titanium SDK 2.0 ͔Βར༻Ͱ͖Δ
BaaS ແྉ͕༻ҙ͞Ε͍ͯͯؾܰʹ͑Δ ෳࡶͳઃఆෆཁɺ΄΅σϑΥϧτͰར༻Մೳ API ΞΫηεΑ͋͘Δ Ajax ͬΆ͍ॻ͖ํ Web ϕʔεͷ GUI ͰσʔλཧͰ͖Δ 20128݄13݄༵
Agenda - ACS Ͱ Sreverside non-programming Ͱ։ൃ - αϯϓϧΞϓϦͰσϞ -
ACS ͬͯͯݱ࣌ͷϝϦοτʗσϝϦοτ Ti.Developers.meeting vol.5 in Kyoto 20128݄13݄༵
Agenda - ACS Ͱ Sreverside non-programming Ͱ։ൃ - αϯϓϧΞϓϦͰσϞ -
ACS ͬͯͯݱ࣌ͷϝϦοτʗσϝϦοτ Ti.Developers.meeting vol.5 in Kyoto 20128݄13݄༵
ACS ͷϝϦοτ Ti.Developers.meeting vol.5 in Kyoto 20128݄13݄༵
ACS ͷϝϦοτ - ։ൃʗӡ༻ίετͷݮɺωΠςΟϒଆʹઐ೦Ͱ͖Δ - API ઃܭҙ֎ͱ͔ͬ͠Γ͍ͯ͠Δ αʔόʔαΠυͷ։ൃ͕ෆཁ Ti.Developers.meeting vol.5
in Kyoto - ͱΓ͋͑ͣແྉͰ͑Δͷͱͯ͋Γ͕͍ͨ - ΦϓγϣϯΛՃ͓ͯ͠ࡒʹ༏͍͠ අ༻ͱͯ͠Ϧʔζφϒϧ - RESTful ͳ API ͱͯ͠ɺOAuth ʹରԠ Titanium Ҏ֎͔Β༻Մೳ 20128݄13݄༵
ACS ͷσϝϦοτ Ti.Developers.meeting vol.5 in Kyoto 20128݄13݄༵
ACS ͷσϝϦοτ - ίϯιʔϧૢ࡞ͱ͔ࠓͷͱ͜ΖෆՄʁ - ϩάͷࢀর ... ͋ͱɺμϯϓͰ͖ͳ͍ ... ͔͠ॏ͍
... σʔλͷཧ͕ web ্ͷΈ Ti.Developers.meeting vol.5 in Kyoto - A ͕ B ͷ࣌ʹ C Λߋ৽ͱ͍͏Α͏ͳ͜ͱαʔόʔͰग़དྷͳ͍ - σʔλͷΓऔΓͷઃܭγϯϓϧʹͳΒ͟ΔΛಘͳ͍ ͪΖΜαʔόʔଆͰͷσʔλૢ࡞ෆՄ ↑ɹAPI Λར༻ͯࣗ͠લͰ࡞ΕԿͱ͔ͳΔʂʢ 20128݄13݄༵
͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ Ti.Developers.meeting vol.5 in Kyoto 20128݄13݄༵