/microprofile-sandbox

Microprofile Sandbox

Primary LanguageTypeScriptApache License 2.0Apache-2.0

Microprofile Sandbox

Kotlin Microprofile TypeScript React Gradle Gradle GitHub license

This repository contain sandbox projects to showcase features of the Microprofile framework.

All examples are written in Kotlin and built using Gradle.

Examples

Read details about the examples in their respective project roots.

Architecture

Microprofile is a lightweight framework for building applications for the JVM runtime. Ktor was created by JetBrains to champion the features of the Kotlin programing language and the asynchronous programing model based on their Coroutines framework.

The examples typically consists of a Frontend and a Backend application.

graph TD
    A[Microprofile Frontend]
    B[Microprofile Backend]

    A:::microprofile --> B:::microprofile
    
    classDef react fill: #58c4dc, stroke: #000000, color: #000000
    classDef microprofile fill: #fdb71c, stroke: #000000, color: #000000
Loading

If the frontend is a JavaScript application then there is often also a Frontend API application.

graph TD
    A[React Frontend]
    B[Microprofile Frontend API]
    C[Microprofile Backend]
    
    A:::react --> B:::microprofile
    B:::microprofile --> C:::microprofile
    
    classDef react fill: #58c4dc, stroke: #000000, color: #000000
    classDef microprofile fill: #fdb71c, stroke: #000000, color: #000000
Loading

Use case

Most examples implement a "hello world" style logic that returns a greeting message when the user inputs a name.

  • A user inputs the name "John" and clicks "Submit"
  • The system generates a greeting "Hello John!" back to the user