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
56
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
160
AI Agent Otomo-san AI-Agent-MeetupTokyo
motokazu
0
1k
AI系 B2B サービスの UI/UXデザイナー/エンジニアがハマるところ
motokazu
0
39
Node-RED for designers
motokazu
0
280
Ohd2016 BOBUTTON The Internet of Buttons
motokazu
0
21
Suika warenja - スイカ割れんじゃー -
motokazu
0
41
Plugman code-reading
motokazu
0
7
geo-location-data-format
motokazu
0
59
Private lens @ yahoo open hack day 2014
motokazu
0
29
Other Decks in Programming
See All in Programming
Go製CLIツールGatling Commanderによる負荷試験実施の自動化
okmtz
3
650
The Efficiency Paradox and How to Save Yourself and the World
hollycummins
0
130
dbt-ga4パッケージを実業務に導入してみた話
t_tokumaru_feedcorp
0
110
Progressive Web Apps for Rails developers
siaw23
2
530
Modern Functional Fluent CFML REST by Luis Majano
ortus24
0
120
Quarto Clean Theme
nicetak
0
220
いまあるチームにフィットさせる Serverless そして Platform Engineeringへの挑戦 / Serverless Fits the Team You Have and Platform Engineering
seike460
PRO
2
1.2k
Beyond the RuboCop Defaults
koic
2
480
Infrastructure as Code でセキュリティを楽にしよう!
konokenj
5
1.4k
NANIMACHI
naokiito
0
930
[PHPカンファレンス沖縄2024]「無理なくできるだけ安全に」テストもないレガシーコードをリファクタリングするテクニック
ikezoemakoto
3
110
Iteratorでページネーションを実現する
sonatard
3
700
Featured
See All Featured
ParisWeb 2013: Learning to Love: Crash Course in Emotional UX Design
dotmariusz
109
6.9k
Robots, Beer and Maslow
schacon
PRO
157
8.2k
How GitHub (no longer) Works
holman
311
140k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
125
18k
Why Our Code Smells
bkeepers
PRO
334
57k
A Tale of Four Properties
chriscoyier
155
22k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
364
22k
Automating Front-end Workflow
addyosmani
1365
200k
Atom: Resistance is Futile
akmur
261
25k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
23
1.7k
Bash Introduction
62gerente
608
210k
Large-scale JavaScript Application Architecture
addyosmani
509
110k
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༵ۚ