Skip to content

This will be used as a starter for the code-up talk I am doing.

Notifications You must be signed in to change notification settings

cargillchantry/code-up-micronaut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

code-up-micronaut

This is the starter application for the micronaut talk.

Installation Instructions

Clone the git repository.

Navigate to the directory you would like to which you would like to clone the project. Run the following.

git clone git@github.com:chantrybjss/code-up-micronaut.git

For those of you without git installed. Above there is a green button that says Clone or Download. Click this button if you do not want to clone using the above command.

Install Java 11

Amazon Corretto is a production-ready distribution of OpenJDK. Download and install from the AWS Documentation here.

Install IntelliJ

Download IntelliJ Community Edition (or Professional if you have a license) and follow the instructions.

Upon installation, open IntelliJ, and run through the wizard to configure the environment. When asked to create or open a project, simply navigate to the project cloned above and select the folder.

Once the project is open, enable annotation processing. From the menu navigate to the following.

File -> Settings -> Build, Execution, Deployment -> Compiler

Then tick "Enable annotation processing". As explained in the Micronaut Docs this ensures that you can run the application and tests without the need for an external build tool like maven.

Add Java 11 to IntelliJ

Navigate to File -> Project Structure and click New..., then JDK, then navigate to the installation directory for Amazon Corretto (or whichever JDK distribution you have installed).

Make sure all the Java 11 features are enabled for the project.

Running the Project

Navigate to the Application class file by double tapping shift, typing Application, and selecting it from the dropdown. Then simply click the green arrow and watch the project build and run.

If you are successful you should see something like the following.

18:33:41.339 [main] INFO  io.micronaut.runtime.Micronaut - Startup completed in 1566ms. Server Running: http://localhost:8080

Congrats! You are all setup!

About

This will be used as a starter for the code-up talk I am doing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages