Skip to content

Latest commit

 

History

History
42 lines (25 loc) · 856 Bytes

File metadata and controls

42 lines (25 loc) · 856 Bytes

Java Backend App

A backend application written in Java, using Spark and the CrateDB JDBC driver.

Prerequisites

  • You will need CrateDB installed and running locally.
  • You will need Java 8 and Apache Maven installed.

Build

Build the application:

mvn clean install

Run

Invoke the application:

mvn exec:java -Dexec.mainClass="io.crate.jdbc.sample.App"

Then, open the application:

open http://localhost:8080/

Run the application on a specific port:

mvn exec:java -Dexec.mainClass="io.crate.jdbc.sample.App" -Dexec.args="8080"