Build a Secure Java REST API with Micronaut
Channel: OktaDev
Date: 2022-05-31

This screencast shows you how to build a Java REST API with Micronaut, secure it with OAuth 2.0, and compile it into a native executable with GraalVM.

Blog post: https://developer.okta.com/blog/2021/06/18/native-java-framework-comparison
GitHub repo: https://github.com/oktadev/native-java-examples/tree/main/micronaut
Demo script: https://github.com/oktadev/native-java-examples/blob/main/demo-micronaut.adoc
Questions: https://devforum.okta.com/t/launch-a-java-rest-api-with-micronaut/20826

Table of Contents:

00:00 - Hello, Java developers
00:57 - Install prerequisites
01:20 - Install a JDK with GraalVM
01:34 - Generate an OAuth 2.0 Access Token
02:41 - Start a Micronaut Java REST API
03:48 - Run and Test your Micronaut REST API with HTTPie
04:22 - Package a Native Micronaut App
05:07 - Startup Time Comparison
05:42 - Memory Usage Comparison
06:42 - Check out `okta start micronaut`
07:01 - Find the example code on GitHub 
07:11 - Thanks for watching!

#Java #REST #Micronaut
----
Okta is a developer API service that stores user accounts for your web apps, mobile apps, and APIs.

* Sign up for Okta for free at https://developer.okta.com/signup/
* For more info visit us at https://developer.okta.com/
* Developer Blog: https://developer.okta.com/blog/
* Follow us on Twitter: https://twitter.com/oktadev
* Follow us on FB: https://www.facebook.com/oktadevelopers/
* Follow us on LinkedIn: https://www.linkedin.com/company/oktadev

Soundtrack: Electronic Ambient Loop (https://freesound.org/people/tyops/sounds/484301/#)  by tyops. CC Attribution 4.0 License (https://creativecommons.org/licenses/by/4.0/).