Skip to content

Latest commit

 

History

History

java-spark-monolith

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Serverless Java Application with Spark

Prerequisites

  1. Install Java 8 and Gradle - I highly recommend using SDKMAN to install any JVM-related packages.
  2. Install NodeJS and the Serverless Framework.
  3. Amazon Web Services account.

You also need to set up your AWS credentials/profiles in the ~/.aws/credentials file.

Build

To build the project, run npm i && ./gradlew clean build.

Run Locally

./gradlew run

You can access the API at http://localhost:4567/ping

Deploy

To deploy, simply run sls deploy.