Code Monkey home page Code Monkey logo

quarkus-kotlin-demo's Introduction

Quarkus Kotlin Demo

A test repo of Quarkus and its Kotlin support.

Checkout the other branches:

  • master: working simple demo
  • constructor-injection: constructor injection in Kotlin (SOLVED)
  • rest-client: Using the Rest Client in Kotlin (SOLVED)

Don't forget to add @ApplicationScoped to all-open plugin as by default only @Path is added. Check Kotlin Guide where it's specified as requirement (for now).

<option>all-open:annotation=javax.enterprise.context.ApplicationScoped</option>

Run the app:

mvn compile quarkus:dev

Test end point:

curl http://120.0.0.1:8080/infos

Project created with:

 mvn io.quarkus:quarkus-maven-plugin:0.11.0:create \
    -DprojectGroupId=quarkus.demo \
    -DprojectArtifactId=quarkus-kotlin \
    -DclassName="quarkus.demo.InfosResource" \
    -Dpath="/infos" \
    -Dextensions="kotlin, smallrye-rest-client, resteasy-jsonb"

quarkus-kotlin-demo's People

Contributors

razvn avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.