Skip to content

Latest commit

 

History

History
 
 

java

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Java Backend App

A Java backend app using Spark and the CrateDB JDBC driver.

Prerequisites

You will need Java 8 and Apache Maven installed.

You will need CrateDB 0.57.0 or higher.

Build

You can build the app like so:

$ mvn clean install

Run

You can the app like so:

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

Then, open the app:

http://localhost:8080/

To run the application on a specific port, do this:

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