Code Monkey home page Code Monkey logo

cloudant's Introduction

World of Airports

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.

Requirements

Java JDK 1.8.0<=

  1. Check actual version with the following command: java -version. If it is not installed:
  2. Check environmental variables are set properly with command :
    • Set JAVA_HOME variable.
    • Set Path variable for the installed jdk bin folder.

Apache Maven 3.3.9<=

  1. Link to download
  2. Installation guide

Build

This part describes how to download, build and start AirportsApp

Download this git repo

You can clone/download directly this repository

  1. If you have git bash, you can clone with the following command: ~$ git clone https://github.com/mojito317/cloudant.git
  2. If not, you can download the zipped project directly from this link. You have to unzip it before further steps.

Build AirportsApp

From CLI

  1. Open command prompt/terminal and change folder to where you downloaded the program: cd [place of download]/cloudant
  2. Clean, install and build the program with the help of maven: mvn clean dependency:copy-dependencies install package
    • If everything went well you must get a message with BUILD SUCCESS in it, something like this: build success

From IntelliJ

  1. Open project from IntelliJ: File >> Open >> Search for [place of download]/cloudant/pom.xml >> OK open project from IntelliJ
  2. Click on Maven on the right side of your window. 3. Click on airports>>Lifecycle>>clean 4. Click on airports>>Lifecycle>>compile maven in IntelliJ

Run

From CLI

  1. 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

From IntelliJ

  1. Right click on the Main class (left side of your window)
    1. Run Main.main() run main in IntelliJ
  2. Click on Run>>Edit configurations and set the arguments of the main application in field Program 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 run in IntelliJ
  1. Repeat the first step

cloudant's People

Contributors

mojito317 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.