Home

Awesome

JRestless Examples

Build Status GitHub issues GitHub license

This repository contains examples for JRestlesss.

Deployment

JRestless does not depend on the serverless framework but it simplifies the necessary AWS configuration tremendously. So all examples contain a serverless configuration and the installation descriptions assume you have serverless installed and configured.

You can install serverless as described in the docs https://serverless.com/framework/docs/guide/installing-serverless/

To run the AWS examples setup your AWS account as described in the docs https://serverless.com/framework/docs/providers/aws/guide/credentials/

Build

All examples can be built either with Gradle or Maven. The default build system, however, is Gradle.

If you want to use Maven you have to replace artifact: build/distributions/SOME-EXAMPLE.zip by artifact: target/SOME-EXAMPLE.jar in all serverless.yml files or at least the example you want to try out. You can run the following script to do this automatically:

git clone https://github.com/bbilger/jrestless-examples.git
cd jrestless-examples
find . -path ./.git -prune -o -name 'serverless.yml' -type f -exec sed -i 's/artifact: build\/distributions\/\([a-z0-9-]\+\)\.zip/artifact: target\/\1.jar/' {} +

The descriptions of the examples are also valid for Gradle, only. If you use Maven, use "mvn package" instead of "./gradlew build".

Examples