micronaut-examples

Example Projects Using Micronaut

  • Owner: micronaut-projects/micronaut-examples
  • Platform:
  • License::
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

Micronaut Examples

This repository contains examples of Micronaut.

The following examples are featured.

hello-world-java

The hello-world-java example is a simple Hello World implementation written in Java.

To run the application with Gradle use:

$ cd hello-world-java
$ ./gradlew run

To run the application with Maven use:

$ ./mvnw exec:exec

Then go to http://localhost:8080/hello/John

To run the tests run ./gradlew test or /mvnw test.

hello-world-groovy

The hello-world-groovy example is a simple Hello World implementation written in Groovy.

To run the application with Gradle use:

$ cd hello-world-groovy
$ ./gradlew run

Then go to http://localhost:8080/hello/John

hello-world-kotlin

The hello-world-kotlin example is a simple Hello World implementation written in Kotlin.

To run the application with Gradle use:

$ cd hello-world-kotlin
$ ./gradlew run

Then go to http://localhost:8080/hello/John

petstore

The petstore example is a Micronaut petstore implementation featuring multiple Microservices and a docker-compose.yml file for starting the application.

See the README in the root of the petstore example for usage instructions.

neo4j-musicians

Example of REST service built with Micronaut, with embedded neo4j as database. It's a simple example without any kind of data validation, just shows how to register beans, a controller and a simple test.

Hope it helps!

views-and-forms-java

The views-and-forms-java example is a simple form display application written in Java.
It uses simple html and css to read a form and display the response.

To run the application with Gradle use:

$ cd views-and-forms-java
$ ./gradlew run

For Windows users:

$ cd views-and-forms-java
$ gradlew run

Then go to http://localhost:8080

To test with Gradle on Firefox:

$ cd views-and-forms-java
$ ./gradlew test

For Windows users:

$ cd views-and-forms-java
$ gradlew test

To test with Gradle on Chrome:

$ cd views-and-forms-java
$ ./gradlew -Dgeb.env=chrome test

For Windows users:

$ cd views-and-forms-java
$ gradlew -Dgeb.env=chrome test

To test with Gradle on Chrome headless:

$ cd views-and-forms-java
$ ./gradlew -Dgeb.env=chromeHeadless test

For Windows users:

$ cd views-and-forms-java
$ gradlew -Dgeb.env=chromeHeadless test

Main metrics

Overview
Name With Ownermicronaut-projects/micronaut-examples
Primary Language
Program languageGroovy (Language Count: 0)
Platform
License:
所有者活动
Created At2018-04-27 15:30:39
Pushed At2022-11-22 04:42:30
Last Commit At2022-11-22 05:42:29
Release Count0
用户参与
Stargazers Count532
Watchers Count46
Fork Count255
Commits Count157
Has Issues Enabled
Issues Count49
Issue Open Count20
Pull Requests Count36
Pull Requests Open Count25
Pull Requests Close Count14
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private