Skip to content

Commit

Permalink
Version 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mminichino committed Dec 22, 2022
1 parent d40bbab commit e81ffd3
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Couchbase Android Sync Gateway Demo
# Couchbase Android Sync Gateway Demo 2.0

Clone into Android Studio.
Create a file named ```app/src/main/assets/config.properties``` with the following contents:
Expand All @@ -8,17 +8,25 @@ sgwhost=1.2.3.4
database=employees
username=demouser
password=password
authEndpoint=1.2.3.4
```

| Property | Description |
|------------|-----------------------------------------------------------------|
| sgwhost | Hostname or IP address for Sync Gateway |
| database | Database name configured in Sync Gateway |
| username | Sync Gateway configured user with access to employee documents |
| password | Password for Sync Gateway user |
| Property | Description |
|--------------|----------------------------------------------------------------|
| sgwhost | Hostname or IP address for Sync Gateway |
| database | Database name configured in Sync Gateway |
| username | Sync Gateway configured user with access to employee documents |
| password | Password for Sync Gateway user |
| authEndpoint | Hostname or IP address for Auth Microservice |

## Backend Container

One option for a quickstart to run the Sync Gateway and Couchbase Server backend components is the [demo container](https://github.com/mminichino/employee-demo-container).
To run the Sync Gateway, Couchbase Server, and Auth Microservice backend components use the [empdemo](https://hub.docker.com/r/mminichino/empdemo) container.
You can obtain a [helper utility](https://github.com/mminichino/employee-demo-container/releases/download/2.1.2/rundemo.sh) to run and manage the container.
Run the following to download the utility:
```
curl -L -O https://github.com/mminichino/employee-demo-container/releases/download/2.1.2/rundemo.sh
```
To build the container yourself, you can access the source here: [employee-demo-container](https://github.com/mminichino/employee-demo-container).

If you run the container on the same system running Android Studio (such as your desktop) use the system's IP address, not localhost (127.0.0.1).

0 comments on commit e81ffd3

Please sign in to comment.