Skip to content

Latest commit

 

History

History

groovy-simple-monolith

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Simple Serverless Groovy Application

Prerequisites

  1. Install Java 8 and Groovy - 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.

Run Locally

To run the service locally: npm i && groovy Routes.

You can connect to the local API via http://localhost:4567/hello

Build

To download the dependencies and prepare the deployment package, run: npm i && sls package

Deploy

To deploy, simply run sls deploy.

To invoke the function, run:

sls invoke -f hello