Skip to content

Latest commit

 

History

History

java-spark

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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"