CBL .Net 4.5 :: Can anyone of you suggest a guide to setup the sync gateway and try to do a minimal syncing?

43 views
Skip to first unread message

Sherry Ummen

unread,
Aug 19, 2014, 6:51:12 AM8/19/14
to mobile-c...@googlegroups.com
Hello,

Can anyone of you suggest a guide to setup the sync gateway and try to do a minimal syncing?

I want to try Sync Gateway how it works.

-Sherry

Jens Alfke

unread,
Aug 19, 2014, 12:09:00 PM8/19/14
to mobile-c...@googlegroups.com

On Aug 19, 2014, at 3:51 AM, Sherry Ummen <sherry...@gmail.com> wrote:

Can anyone of you suggest a guide to setup the sync gateway and try to do a minimal syncing?

You can kick the tires of Sync Gateway by downloading it and just running "./sync_gateway" with no arguments. This will start up a little in-memory database and serve it at http://localhost:4985/sync_gateway/ .

Then you can build a minimal Couchbase Lite demo app like Grocery Sync, set the remote db URL to the above, and try it out.

(The more complex demo apps require a sync function to be configured in the gateway; these apps should come with a JSON file for configuring the gateway. You can set up the gateway for these by editing the config file and changing the "server": definition to
      "server": "walrus:",
(to make it use the simple in-memory db instead of Couchbase Server) and then starting sync_gateway with the config file as the argument.

—Jens

Sherry Ummen

unread,
Aug 20, 2014, 3:32:01 AM8/20/14
to mobile-c...@googlegroups.com
Ok Thanks Jens

Can you also tell whether there is some windows desktop application which can open .cblite file? Something like CouuchbaseLite viewer for MacOs?

Jens Alfke

unread,
Aug 20, 2014, 12:43:47 PM8/20/14
to mobile-c...@googlegroups.com

On Aug 20, 2014, at 12:32 AM, Sherry Ummen <sherry...@gmail.com> wrote:

Can you also tell whether there is some windows desktop application which can open .cblite file? Something like CouuchbaseLite viewer for MacOs?

I don't think so. Not unless someone's written one without telling us. (A cross-platform Java one would be nice to have, hint hint.)

—Jens

Zack Gramana

unread,
Aug 20, 2014, 1:53:28 PM8/20/14
to mobile-c...@googlegroups.com
A cross-platform .NET one would be even better! ;)

Sherry, it’s just a sqlite file, so you could just use Visual Studio’s database explorer to connect to it to browse the tables.  Make sure you have an ADO.NET SQLite provider, and use the right connection string (for help, see http://www.connectionstrings.com/sqlite/). You’ll want to focus on the `revs` table.

Alternatively, you can also replicate against a local Sync Gateway running Walrus instead of Couchbase Server, and then open up the admin UI (http://localhost:4985/_admin/) to select your database and browse the documents.

--
You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/77487BDF-5FE4-47BE-B05B-3822BF474515%40mooseyard.com.
For more options, visit https://groups.google.com/d/optout.

Jens Alfke

unread,
Aug 20, 2014, 2:26:50 PM8/20/14
to mobile-c...@googlegroups.com

On Aug 20, 2014, at 10:53 AM, Zack Gramana <za...@couchbase.com> wrote:

Sherry, it’s just a sqlite file, so you could just use Visual Studio’s database explorer to connect to it to browse the tables.  Make sure you have an ADO.NET SQLite provider, and use the right connection string (for help, see http://www.connectionstrings.com/sqlite/). You’ll want to focus on the `revs` table.

Unfortunately the revs table uses a custom collator for one of its columns, so if you open it with a different client, SQLite will refuse to run some types of queries because it won't know how to search that column.

—Jens
Reply all
Reply to author
Forward
0 new messages