Learn how to create command-line app with Java, Micronaut, Picocli, and GraalVM ■ Micronaut Tutorial ■ #micronaut
Welcome to the first episode of the Creating Command-Line App with Java, Micronaut, Picocli, and GraalVM video series. Today I will show you how easy it is to build a CLI app using the stack mentioned earlier. We are going to build the stackoverflow-cli - a program that will allow us to search Stack Overflow questions based on the search criteria. Enjoy!
📺 WATCH NEXT:
Implementing OAuth 2.0 in a Java command-line app » • Implementing OAuth 2.0 in a Java comm...
☕️ BUY ME A COFFEE (thanks in advance! 😀)
https://e.printstacktrace.blog/buy-me...
📧 JOIN MY NEWSLETTER
https://e.printstacktrace.blog/newsle...
⏱️ TIMESTAMPS:
00:00 | Intro
01:17 | Creating new Micronaut project using the Launch website
02:51 | Creating new Micronaut project using Micronaut CLI app
04:09 | Importing and configuring the project in IntelliJ IDEA
07:02 | Implementing "stackoverflow-cli search" command
10:04 | Calling REST API using Micronaut's declarative HTTP client
17:15 | Formatting the output using ANSI colors and
23:28 | Compiling native executable file using GraalVM native-image
30:11 | BONUS: Using Java 11 HttpClient
36:16 | Conclusion
⚠️ ATTENTION: The issue with the default 2 seconds quiet period of the shutdownGracefully method can be worked around by adding `System.exit(0)` at the end of the application main method. This way we force JVM to shutdown without waiting for the Netty's shutdownGracefully method to complete. The updated line is here: https://github.com/wololock/stackover...
💾 GET THE SOURCE CODE:
https://github.com/wololock/stackover...
📖 READ THE BLOG POST:
https://e.printstacktrace.blog/buildi...
🔥 MORE MICRONAUT VIDEOS & RESOURCES:
• Building command-line app with Java, Micronaut, Picocli, and GraalVM » • Micronaut, GraalVM & Picocli - Build ...
• Implementing OAuth 2.0 in a Java command-line app » • Implementing OAuth 2.0 in a Java comm...
• Micronaut Cookbook playlist » • Micronaut Cookbook
📷 CAMERA GEAR I USE:
• My camera » https://e.printstacktrace.blog/gear/c...
• 25mm f1.7 lens » https://e.printstacktrace.blog/gear/l...
• Microphone » https://e.printstacktrace.blog/gear/m...
• LED lights » https://e.printstacktrace.blog/gear/l...
• Check my full kit » https://kit.co/wololock/my-youtube-st...
🛠️ TOOLS & SERVICES I USE TO:
• design YouTube thumbnails (Canva) » https://e.printstacktrace.blog/canva?...
• improve my grammar skills (Grammarly) » https://e.printstacktrace.blog/gramma...
• develop mailing list (ConvertKit) » https://e.printstacktrace.blog/conver...
• listen to audiobooks (Audible, 30 days free trial) » https://e.printstacktrace.blog/audibl...
• read Kindle ebooks (Kindle Unlimited) » https://e.printstacktrace.blog/kindle...
• secure network connection with VPN (NordVPN) » https://e.printstacktrace.blog/nordvp...
• improve SEO on YouTube (VidIQ) » https://e.printstacktrace.blog/vidiq?...
• host WordPress websites (Bluehost) » https://e.printstacktrace.blog/blueho...
❤️ SUPPORT MY WORK
• Github Sponsors » https://github.com/sponsors/wololock
• Open Collective » https://opencollective.com/eprintstac...
• Other options » https://e.printstacktrace.blog/suppor...
👋 STAY IN TOUCH:
• Blog » https://e.printstacktrace.blog
• Twitter » / wololock
• LinkedIn » / szymon-st%c4%99pniak-9a0b1630
• Github » https://github.com/wololock
✉️ CONTACT:
For all subscribers, please use this email: [email protected]
For business inquires only, please use this email: [email protected]
DISCLAIMER: Some of the links above are affiliate links. If you decide to click that link and subsequently make a purchase, I will get a small percentage from your purchase. Using the affiliate link does not affect the final price of the product. The commission I earn comes at no additional cost to you. Thank you for supporting my channel so I can continue to provide you with free content on a regular basis!
#eprintstacktrace #szymonstepniak