Skip to content

lissam1/micronaut-demo

Repository files navigation

micronaut-demo

A sample project to explore and practice various features of Micronaut.

Table of Contents


About

This project serves as a playground for practicing and testing Micronaut features such as dependency injection, configuration, HTTP server/client, and more.

Features

  • Fast startup and low memory footprint
  • Dependency injection
  • REST API endpoints
  • Configuration management
  • Simple health check endpoint

Requirements

  • Java 17 or newer
  • Gradle (or use the ./gradlew wrapper)

Getting Started

  1. Clone the repository:

    git clone https://github.com/lissam1/micronaut-demo.git
    cd micronaut-demo
  2. Build the project:

    ./gradlew clean build
  3. Run the application:

    ./gradlew run

    The default server will start at http://localhost:8080.

Running the Application

To run quickly, use:

./gradlew run

Testing

Run the tests with:

./gradlew test

Project Structure

micronaut-demo/
├── src/
│   ├── main/
│   │   ├── java/
│   │   └── resources/
│   └── test/
│       ├── java/
│       └── resources/
├── build.gradle
└──

Useful Commands

  • Run application: ./gradlew run
  • Run tests: ./gradlew test
  • Build fat JAR: ./gradlew shadowJar

Further Reading

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages