In short, this application is using pulls data about airports from a Cloudant database and displays their location in a simple list, sorted by distance.
- Check actual version with the following command:
java -version
. If it is not installed: - Check environmental variables are set properly with command :
This part describes how to download, build and start AirportsApp
You can clone/download directly this repository
- If you have git bash, you can clone with the following command:
~$ git clone https://github.com/mojito317/cloudant.git
- If not, you can download the zipped project directly from this link. You have to unzip it before further steps.
- Open command prompt/terminal and change folder to where you downloaded the program:
cd [place of download]/cloudant
- Clean, install and build the program with the help of maven:
mvn clean dependency:copy-dependencies install package
- Open project from IntelliJ:
File >> Open >> Search for [place of download]/cloudant/pom.xml >> OK
- Click on Maven on the right side of your window.
3. Click on
airports>>Lifecycle>>clean
4. Click onairports>>Lifecycle>>compile
- Run Main class with three double numbers.
- The first number represents the radius,
- the second the latitude
- the third the longitude
- E. g. when we want 5 degree radius, from 53.630389 degree latitude and 9.988228 degree longitude we should type the following:
java -cp "target/*;target/dependency/*" apps.Main 5.0 53.630389 9.988228
- Right click on the Main class (left side of your window)
- Click on
Run>>Edit configurations
and set the arguments of the main application in fieldProgram arguments
to three double numbers:
- The first number represents the radius,
- the second the latitude
- the third the longitude
- E. g. when we want 5 degree radius, from 53.630389 degree latitude and 9.988228 degree longitude we should type the following:
5.0 53.630389 9.988228
- Repeat the first step