StraysWonderland / serverless-quarkus

Sample Quarkus Serverless Function written in Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BreakEvenCalculatorQuarkus

Sample Quarkus Serverless Function written in Java This Repo is meant to test how easy the workflow for developing, testing and deploying a function to different serverless plattforms is.

The code is a simple break even function.

  • Developed with Quarkus
  • Using GraalVM to build binary executable

Running Locally

Quarkus allows to test the code by running it locally with hot reload.

  • compile in development mode
    ./mvnw compile quarkus:dev

Package into native executable

  • add to pom.xml
    <profiles>
        <profile>
            <id>native</id>
            <properties>
                <quarkus.package.type>native</quarkus.package.type>
            </properties>
        </profile>
    </profiles>
  • run
    ./mvnw package -Pnative

Slideshow

Clone this repo and open QuarkusSlideshow.html which summarises how to work with Quarkus.

  • created using html and markdown via remark.js

About

Sample Quarkus Serverless Function written in Java


Languages

Language:HTML 75.1%Language:Java 24.9%