---
title: Travel Mobile App
pubDate: 2026-08-17T09:53:44.266Z
antora:
  editUrl: https://github.com/couchbaselabs/mobile-travel-sample/edit/master/content/modules/mobile-travel-tutorial/pages/java/installation/travel-mobile-app.adoc
  xref: xref:tutorials:mobile-travel-tutorial:java/installation/travel-mobile-app.adoc[]
---

[Consult the llms.txt file for a full list of contents](/llms.txt)
[View original HTML](/tutorials/mobile-travel-tutorial/java/installation/travel-mobile-app.html)

# Travel Mobile App

## [](#pre-requisites)Pre-requisites

While you can use any IDE of your choice suited for Java development, in this tutorial we will be working with **IntelliJ IDEA**. All instructions in the workshop assume this IDE.

* IntelliJ IDEA 2019 or above downloadable from [Jetbrains Developer site](https://www.jetbrains.com/idea/download/#section=mac). The **Community** version is sufficient for our purposes.
* JDK 8

**Windows Users**

If you are developing on Windows, you must use a Windows 10 machine. Also, note that if you choose the Manual or Docker installation mode, you should also have **administrative privileges on the Windows box** so you can authorize the installation and running of the required executables.

## [](#travel-sample-mobile-app)Travel Sample Mobile App

* Clone the "master" branch of the Travel Sample app from GitHub. We are doing a shallow pull with `depth` as 1 to speed the cloning process.  
```bash  
git clone -b master --depth 1 https://github.com/couchbaselabs/mobile-travel-sample.git  
```
* Open **java/TravelSample/build.gradle** using IntelliJ IDEA.

## [](#configure-app-to-connect-to-backend)Configure App to connect to Backend

You will have to update the URLs specified in the app to connect to the backend If you haven't done so already, complete the steps outlined in the "Backend Installation" to install your Couchbase Server, Sync Gateway and Python web backend app.

### [](#updating-the-web-backend-url)Updating the web backend URL

**Open the file** `TryCb.java` in net folder. You must update the `WEB_APP_ENDPOINT` constant which points to the Python Web Server.

Now, the URLs that you specify will vary depending on the installation option that you chose for deploying your backend

* Manual
* Docker

```java
 public static final String WEB_APP_ENDPOINT = "http://127.0.0.1:8080/api/";
```

```java
 public static final String WEB_APP_ENDPOINT = "http://127.0.0.1:8080/api/";
```

### [](#updating-the-sync-gateway-url)Updating the Sync Gateway URL

Next, you will update the Sync Gateway endpoint.

**Open the file** `ReplicatorManager.java` in db folder You must update the `SGW_ENDPOINT` constant.

Now, the URLs that you specify will vary depending on the installation option that you chose for deploying your backend

* Manual
* Docker

```java
public static final String SGW_ENDPOINT = "ws://127.0.0.1:4984/travel-sample";
```

```java
public static final String SGW_ENDPOINT = "ws://127.0.0.1:4984/travel-sample";
```

Try it Out

1. Build and run the project (preferably in Debug mode)  
![800](https://raw.githubusercontent.com/couchbaselabs/mobile-travel-sample/master/content/assets/java-build.png)
2. Verify that the login screen appears in the simulator.  
![800](https://raw.githubusercontent.com/couchbaselabs/mobile-travel-sample/master/content/assets/java-login.png)