LoginSignup
13
12

More than 5 years have passed since last update.

Realm Mobile Platformのデモアプリを動かしてみる

Last updated at Posted at 2016-09-28

Realm Mobile Platformが気になったので、デモアプリを動かしてみました(^O^)/
※詳細は、こちら

こんな感じに別の端末から入力された値が、他の端末にも同期されました!

タイトルなし.gif

デモアプリの動かし方

① ダウンロード

ここから必要なファイルをダウンロードします。
https://realm.io/docs/#getting-started

macとlinuxの2つあります。

スクリーンショット 2016-09-28 8.16.22.png

今回はmacを選びました。

スクリーンショット 2016-09-28 8.16.32.png

② サーバ起動

start-object-server.commandをダブルクリックして、サーバを起動します。

スクリーンショット 2016-09-28 8.17.10.png

ブラウザが開いて、このような登録画面がでるはずです。
メアドやパスワードを入力します。

screencapture-localhost-9080-1475018258749.png

登録完了したら、先ほどのアカウントでログインします。

スクリーンショット 2016-09-28 8.19.04.png

そしたら、こんな管理画面がでるはずです。

CtX5Rg4UkAAveaB.jpg

③ クライアント

demo/RealmTasksにiOSやAndroidのデモアプリがあるので、お好きなやつを選んで、実行します(^_^)

スクリーンショット 2016-09-28 8.19.37.png

あとは、いろいろ試します!

④ データベースを見る

サーバ側のデータベースを見るには、Realm Browserを使います。

スクリーンショット 2016-09-28 9.32.40.png

Connect to Object Serverを選択。

スクリーンショット 2016-09-28 9.33.28.png

urlとtokenを入力します。
tokenは、ターミナルにYour admin access token isと表示されているので、それをコピペ。
urlは、realm://127.0.0.1:9080のような形で入れます。
そして、最後にConnectを選択!

スクリーンショット 2016-09-28 8.36.46.png

うまくいくと、こんな感じにみえます!

CtX9QFwVMAAiVWp.jpg

13
12
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
13
12