Goal:

Micronaut is a modern, JVM-based, full-stack framework for building modular, easily testable microservice and serverless applications. This blog post is giving a step-by-step guide for installation on OL7

 

Steps:

(1) Install SDKMAN

curl -s "https://get.sdkman.io" | bash

 

(2) Update SDKMAN

sdk update

 

(3) Initialize SDKMAN

source "~/.sdkman/bin/sdkman-init.sh"

 

(4) Update SDKMAN

sdk update

 

(5) Install micronaut

sdk install micronaut

 

(6) Check Micronaut CLI --> Interactive Mode

 

mn
Resolving dependencies...
| Starting interactive mode...
| Enter a command name to run. Use TAB for completion:
mn> 

 

(7) Creating a Java Project

mn> create-app hello-world
| Generating Java project...
| Application created at /home/student/hello-world
| Initializing application. Please wait...

 

(8) Creating a Groovy Project

Micronaut]$ mn create-app hello-world --lang groovy
| Generating Groovy project...
| Application created at /home/student/Micronaut/hello-world

 

Enjoy!

 

I hope it helps someone

 

Regards

Mahmoud