mrolla / demo-api

A simple Java RESTful API made with Spark.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Demo API GitHub Logo Docker Repository on Quay

Building from Source

The project uses a Gradle-based build system. In the instructions below, ./gradlew is invoked from the root of the source tree and serves as a cross-platform, self-contained bootstrap mechanism for the build.

Prerequisites

Git and Java JDK 8

Be sure that your JAVA_HOME environment variable points to the jdk1.8.0 folder extracted from the JDK download.

Also make sure you are using the correct java version by issuing in a terminal the following command

java -version

Build everything

./gradlew build

Run the test suite

./gradlew test

Run

./gradlew run

... and discover more commands with ./gradlew tasks.

Run the Docker service

Be sure to have Docker installed and then simply issue:

docker run -d --name demo-api -p 4567:4567 quay.io/mrolla/demo-api

About

A simple Java RESTful API made with Spark.


Languages

Language:Java 100.0%