Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example/javaweb/4-hello-micronaut and 5-todo-micronaut #3292

Merged
merged 9 commits into from
Jul 25, 2024

Conversation

lihaoyi
Copy link
Member

@lihaoyi lihaoyi commented Jul 24, 2024

It's pretty minimal, but it's a start. Apart from Spring/Spring-Boot, Micronaut and Quarkus seemed like the next most popular Java web frameworks according to the Jetbrains Developer Survey https://www.jetbrains.com/lp/devecosystem-2023/java/, and I found the Micronaut examples more plentiful than the Quarkus examples

hello-micronaut is a minimal example, while todo-micronaut exercises many more components parts of micronaut at least once: database access, routing, JSON serialization, static files, JS/CSS, etc.

One big thing we are missing integration of Micronaut's AOT support. That can come in a follow up, either by me or by someone else who's able to contribute it

Comment on lines 60 to 61
// The `MicronautModule` shown here does not implement the full functionality of the micronaut
// CLI, but it easily can be extended with more features as necessary.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we welcome the reader to create and add a micronaut contrib module with more functionality?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think as far as the doc-site, it is concerned it's best to leave it as an example. I can open a ticket/bounty later to formalize MicronautModule as a contrib/ module and link it from the docs

Copy link
Member

@lefou lefou Jul 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was more thinking of encouraging them to contribute. Just to show them, we are open for adding support and convenience once there is demand/contribution. I haven't any idea how widely used micronaut is and if there is any demand in a dedicated plugin?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll have to see; the demand in the past is zero because we didn't target Java developers, but going forward there may be demand.

Given the nascent nature of these examples, let's leave MicronautModule as an example code snippet for now, and we can see if there is anyone willing to contribute fleshing it out and maintaining it as an official contrib/ module.

@lihaoyi lihaoyi changed the title Add example/javaweb/4-hello-micronaut Add example/javaweb/4-hello-micronaut and 5-todo-micronaut Jul 24, 2024
@lihaoyi lihaoyi merged commit ce60543 into com-lihaoyi:main Jul 25, 2024
36 of 39 checks passed
@lefou lefou added this to the 0.11.11 milestone Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants