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
CouchDB android - Dot Logging
Search
Motokazu Nishimura
May 06, 2011
Programming
0
58
CouchDB android - Dot Logging
CouchDB jp Relaxon at 2011/04/29.
Introduce couchdb-android application with libcouch-android.
Motokazu Nishimura
May 06, 2011
Tweet
Share
More Decks by Motokazu Nishimura
See All by Motokazu Nishimura
りす と らぼ。Stockmark Labs の裏側 - AI社内推進チームの納涼会LT
motokazu
0
170
AI Agent Otomo-san AI-Agent-MeetupTokyo
motokazu
0
1.1k
AI系 B2B サービスの UI/UXデザイナー/エンジニアがハマるところ
motokazu
0
42
Node-RED for designers
motokazu
0
290
Ohd2016 BOBUTTON The Internet of Buttons
motokazu
0
23
Suika warenja - スイカ割れんじゃー -
motokazu
0
47
Plugman code-reading
motokazu
0
7
geo-location-data-format
motokazu
0
59
Private lens @ yahoo open hack day 2014
motokazu
0
30
Other Decks in Programming
See All in Programming
情報漏洩させないための設計
kubotak
4
820
フロントエンドのディレクトリ構成どうしてる? Feature-Sliced Design 導入体験談
osakatechlab
8
4.1k
Haze - Real time background blurring
chrisbanes
1
520
rails statsで大解剖 🔍 “B/43流” のRailsの育て方を歴史とともに振り返ります
shoheimitani
2
950
テストケースの名前はどうつけるべきか?
orgachem
PRO
0
160
Androidアプリのモジュール分割における:x:commonを考える
okuzawats
1
190
Online-Dokumentation, die hilft: Strukturen, Prozesse, Tools
ahus1
0
100
rails stats で紐解く ANDPAD のイマを支える技術たち
andpad
1
300
テストコード書いてみませんか?
onopon
2
200
Асинхронность неизбежна: как мы проектировали сервис уведомлений
lamodatech
0
970
Fibonacci Function Gallery - Part 1
philipschwarz
PRO
0
230
PHPUnitしか使ってこなかった 一般PHPerがPestに乗り換えた実録
mashirou1234
0
330
Featured
See All Featured
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
1
110
Become a Pro
speakerdeck
PRO
26
5k
Music & Morning Musume
bryan
46
6.2k
RailsConf 2023
tenderlove
29
940
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
29
910
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
44
9.3k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
28
2.1k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
6
520
Automating Front-end Workflow
addyosmani
1366
200k
How STYLIGHT went responsive
nonsquared
96
5.2k
Transcript
Dot Logging with couch mobile. @motokazu 20115݄6༵ۚ
࠷ۙɺʙ͕Ҿ͍͓ͯΓ·ͯ͠... • ٕज़ऀͨΔͷࣗͷةػͷ࣌ʹྗΛ͍͍ͨ • ྫɿࢲͷ߹ • ̍ϲ݄લ͔Β֏͕ଓ͍͓ͯΓ·ͯ͠ɺɺՌ࣏͍ͨͯͬͯ͠Δͷ͔͔ΒΜ • ̍ʹԿճ֏͢ΔͷͰɺѲෆೳ •
ΧϯλʔͰ࡞Δ 20115݄6༵ۚ
Market de ͍͍͡ΌΜ Counter Χϯλʔ 20115݄6༵ۚ
͍͍͑ɺຖͷϩά͕ཉ͍͠ͷͰ͢ɻ ͜͏͍͏ײ͡ͰάϥϑͰ ࣌ܥྻͰΧϯτΛऔΔ 20115݄6༵ۚ
͍͍͑ɺຖͷϩά͕ཉ͍͠ͷͰ͢ɻ ͦ͏͢Εάϥϑ͔ΒԿ͔͕͔Δ͔?? վળ 20115݄6༵ۚ
·ͣ, jquery.mobile + CouchDB • CouchDBΛAndroidͰىಈ • couahapp push http://<androidͷip>:5984/dots
• ϒϥβͰ http://<androidͷip>:5984/dots/_design/dotlgng/index.html jsonΛpost ࣌ؒΛkeyʹ͠ ͯviewΛ࡞ Dot Logging (github) : https://github.com/motokazu/Dot-Logging 20115݄6༵ۚ
• ͙͢ʹೖྗ͍ͨ͠ͷʹɺͨ·ʹCouchDB͕ʢউखʹʣऴ͍ྃͯ͠Δ • CouchDBΛىಈͯ͠.. ϒϥβΛ։͍ͯ [ dot ] ͠ͳ͍ͱ͍͚ͳ͍
CouchDB androidͷbeta͔Βৗற͠ͳ͘ͳͬͨ ΞϓϦ͔Βಈ͔ͯ͋͛͠Δඞཁ͕͋Δ 20115݄6༵ۚ
libcouch-android Λ͏ • ΞϓϦέʔγϣϯͷىಈͱڞʹɺCouchDBΛ্ཱͪ͛ͯ͘ΕΔ • git clone https://github.com/couchone/libcouch-android.git • eclipseͰطଘͷσΟϨΫτϦ͔ΒϓϩδΣΫτΛ࡞ʢ্هͰcloneͨ͠σΟϨΫτϦΛࢦఆͯྃ͠ʣ
• ৽نͰAndroid ProjectΛ࡞ • AndroidManifest.xml Λ։͖ɺҎԼΛՃ • Android ProjectͷϓϩύςΟΛ։͖ Android Λબ libandroid-couchΛબ • https://github.com/couchone/libcouch-android/raw/master/src/com/couchone/libcouch/ExampleCouchApp.javaΛsrcσΟϨΫτϦʹί ϐʔ • javaΛ։͖, bootStrapDatabaseͱ appToLaunch Λ couchapp ͷ໊લʹมߋ (͜͜Ͱdotlgng) • couchapp push ༻ʢlibcouch-android͕উखʹpushͯ͘͠ΕΔʂ) ͷdesign json Λexport͢Δ (json໊ appToLaunchͱ߹ΘͤΔ) • exportͨ͠design JSON Λ assets σΟϨΫτϦʹೖΕͯɺAndroidΞϓϦΛ Run ͢Δɻ ࢀߟɿhttp://arandomurl.com/2011/02/13/developing-with-couchdb-on-android.html <uses-permission android:name="android.permission.INTERNET"></uses-permission> couchapp push --export > dotlgng.json 20115݄6༵ۚ
dotlgng-android UIͯ͢jquery.mobile άϥϑjqPlotͰ ... දࣔ͞Εͳ͍ɻ ࠔͬͨ http://mtkz.info ͔Βμϯϩʔυ͠·͢ 20115݄6༵ۚ
js͔ΒDB໊Λࢦఆ͢Δͱ·Δɻ • libcouch-androidͰΞϓϦ͕͏DBͷ໊લΛࣗಈతʹੜ͢Δ • DB໊ͱpackage໊ΛΞϯμʔείΞͰܨ໊͍ͩલʹͳΔ • ಉ͡DBΛೋͭͷΞϓϦέʔγϣϯ͔Β͏ͨΊʹ, ಉ͡ύοέʔδͰ࡞͠ɺιʔεͷ ʮbootstrapDatabasesʯΛಉ͡DB໊ʹ߹ΘͤΔ DB໊
dotlgng-info_mtkz_android_dotlogging db໊ package໊ 20115݄6༵ۚ
dotlogging-android • ՝ɿdotΛଧͭͨΊ͚ͩʹɺandroidΛऔΓग़ͯ͠ΞϓϦΛىಈ͠ͳ͍ͱ͍ ͚ͳ͍...ಛʹεϚʔτϑΥϯͩͱऔΓग़ͯ͠dotΛଧͭͳΜͯେ͛͗͢͞Δ. • LiveViewͷΑ͏ͳΠϯλϑΣʔε͕͍͍ɻ࣌ܭͳͲɻ άϥϑ ͳ͘දࣔ 20115݄6༵ۚ
·ͱΊ • CouchDB on Android ΞϓϦΛ࡞͢Δࡍʹɺlibcouch-androidͱ͍͏બ ࢶ͕͋Δɻ • σβΠϯυΩϡϝϯτ͚ͩΛ࡞ͯ͠ɺandroidΞϓϦʹΈࠐΉ͜ͱͰ؆ ୯ʹ࡞Մೳ
• ΞϓϦΛcouchappͰ։ൃ͍ͯ͠Εɺcouchapp push --export ͰͰ͖Δ • libcouch-androidΛ͏߹ɺDB໊͕ಛ༗ʹͳΔͷͰҙ͢Δ͜ͱ • Կىಈ͢ΔͱɺΓిΛফ͢Δ 20115݄6༵ۚ