In this hands-on workshop we will do exercises using the hot new Quarkus framework to build a sample app. Quarkus is based on Java standards such as CDI and JPA, and is built specifically to offer a compelling platform for building Serverless application, whether you run on Kubernetes or Cloud Functions.
Quarkus is also built to bring “developer joy” and makes development in Java fun and fluid and fast!
- Getting to know Quarkus - create a new project
- Building REST endpoints quickly using RESTEasy
- Deploy app as Cloud Function
- Easy to write unit tests with RESTAssured
- No-fuss and intuitive database access with Panache
- Do the setup here: Setup for workshop
- Basic Java knowledge with a Java IDE
- Please have this installed on your laptop: Java 8, Maven, Docker
Run the following command to invoke a test function from the command-line.
$ ibmcloud wsk action invoke whisk.system/utils/echo -p message hello --result
{
"message": "hello"
}
If you're using the local OpenWhisk instance, simply drop the 'ibmcloud' at the beginning of the command, and run the rest
If this command executes successfully, you have verified that the IBM Cloud CLI and Cloud Functions plugin have been installed and configured correctly. If this does not work, please contact the workshop organiser to provide assistance!