Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
JavaScript アプリで使うデータベースを考える
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Tiny Mouse
November 29, 2018
Programming
380
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
JavaScript アプリで使うデータベースを考える
Hamamatsu.js 2018/11/17
Mobile Act NAGOYA 2018/11/29
Tiny Mouse
November 29, 2018
More Decks by Tiny Mouse
See All by Tiny Mouse
今年がんばったこと
tinymouse
0
100
今年がんばったこと
tinymouse
0
140
【LT会】インプット・アウトプットどうしてる?
tinymouse
0
75
今年がんばったこと
tinymouse
0
200
.NET MAUI+Blazor を使ってみた
tinymouse
0
230
【LT会】この技術書がすごい
tinymouse
1
230
蔵書管理アプリを作り直した
tinymouse
1
1.1k
Windows アプリの開発手段の選択肢をまとめてみた
tinymouse
0
200
蔵書管理アプリを作りました
tinymouse
0
700
Other Decks in Programming
See All in Programming
AI時代のIaC入門 〜なぜインフラをコードで管理したいのか?〜 / Introduction to IaC in the AI Era
akihisaikeda
6
1.4k
Lambda durable functionsでHuman in the Loopを楽に…楽に……
har1101
2
280
3回つくってわかった、 定期実行ジョブ基盤の本質情報
takai
4
3.7k
조합이폭발하는디자인시스템이걸눈으로도테스트하라고요
giljongyu
0
720
AI-Powered Domain-Driven Design
ziobrando
0
390
Inertia Rails: The One-Person Framework with React & Friends
skryukov
0
380
Next.js: The final boss of Web Performance
guaca
0
380
全ての永続トークンを、生まれる前に消し去りたい!
sylph01
3
1.7k
Web Framework Benchmark Battle 2026, Any%
a_matsuda
3
3.1k
當我們開始不讀 Code - AI Agent 時代,Code Review 與 Clean Code 還剩下什麼?
jame2408
1
360
Kawaiicon: Kubernetes, it's no longer cool, but let's secure it anyway!
barnbarn
0
100
TS 7.0 で baseUrl が使えなくなった今、パスエイリアスをどうするか
bicstone
2
500
Featured
See All Featured
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
310
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.8k
Large-scale JavaScript Application Architecture
addyosmani
516
110k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
670
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
450
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
480
Darren the Foodie - Storyboard
khoart
PRO
4
4.1k
Paper Plane (Part 1)
katiecoart
PRO
2
12k
Reality Check: Gamification 10 Years Later
codingconduct
0
2.4k
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
5
900
Heart Work Chapter 1 - Part 1
lfama
PRO
10
37k
Transcript
Tiny Mouse JavaScript アプリで使うデータベースを考える Hamamatsu.js 2018/11/17
自己紹介 n @tinymouse_jp n SI 企業の SE n 日曜プログラマ n
二児の父 n 静岡県浜松市出身 n 東京都品川区在住。名古屋市在住。 n Windows 愛用。iPhone Android スマホ n Android の会浜松支部、よちよち Android の会 Tiny Mouse
家計簿アプリを作った
とりあえずスタンドアロン オフライン対応とか 認証対応とか とりあえず不要
家計簿アプリを作る Node.js+nedb +Electron クラウドサーバ バックエンドは・・
これからやりたいこと n サーバサイドをクラウドサービスにするため認 証機能を加える n 同時にデータベースを nedb から別のものに する
ウェブアプリにすると オフライン対応とか 認証対応とか 必要だけど面倒
クラサバアプリの場合 ウェブアプリも Ajax 使うと クラサバアプリと同じだね
クラサバアプリはこんなのも こうなると、構造は スタンドアロンと同じだね
さて・・
こんなのできないかな アプリのコードはそのままで データベースだけサーバに
こんなのがあった MongoDB 互換の Nedb を使う これまでのコードがそのまま使えそう l MongoDB Stitch オフライン対応できないのが残念
iOS 、Android 用の MongoDB Mobile ならオフライン対応あり そもそもクライアントアプリ用でない
こんなのがあった l Realm Database +Realm Platform ちょっと高額・・ ローカルのデータが クラウドサーバと同期される =簡単にオフライン対応
Nedb を使うこれまでのコードが そのまま使えない (60,000円/アプリ・年)
こんなのがあった l Firestore on Firebase l PouchDB でも、単純なキーバリュー型・・ 条件指定して検索とか更新できない ローカルのデータが
クラウドサーバと同期される 安価または無料で使える
こんなのはどうかな ローカルのデータベースは そのままで、そのデータを キーバリュー型データベース と同期させる
ちょっと試してみるか! ということで・・