Skip to content

FDelporte/java-jetty-htmx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Example Java Application with Jetty Webserver and htmx Website

Example application showing how to configure an embedded Jetty server to use in combination with an htmx web user interface via:

  • Static files included in the resources
  • REST APIs
  • WebSocket communication

Full information is available here:

Example Java Application with Embedded Jetty and a htmx website

Technical Info

Jetty

See https://eclipse.dev/jetty/.

"Jetty provides a web server and servlet container, additionally providing support for HTTP/2, WebSocket, OSGi, JMX, JNDI, JAAS and many other integrations. These components are open source and are freely available for commercial use and distribution."

htmx

See https://htmx.org/ and https://htmx.org/extensions/web-sockets/.

"htmx gives you access to AJAX, CSS Transitions, WebSockets and Server Sent Events directly in HTML, using attributes, so you can build modern user interfaces with the simplicity and power of hypertext"

Other

Running the Application

In IntelliJIDEA

From JAR

  • Build the application with mvn package.
  • Start it with java -jar target/jetty-htmx-demo.jar

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published