Skip to content

Repository files navigation

Dynamic Websites with Htmx + WebComponents + Kotlinx.Html

This is the demo code for the talk on "Dynamic Websites with Htmx, WebComponents, and Kotlinx."

Features

Preconditions

Usage

  • Build and move .js files to src/main/resources/public via cd assets && npm ci && npm run dist

  • Run server via ./gradlew bootRun and open localhost:8080.

  • Run tests via ./gradlew test

LiveReload / Restart

LiveReload is great for fast iteration. It’ll restart spring and refresh your browser window for changes.

To use it:

  1. Make sure you have the LiveReload extension installed in Firefox/Chrome

  2. Remap Build Project to ⌘S for convenience

  3. Run your application via IntelliJ ./gradlew bootRun

  4. Open the site in your browser

  5. If the LiveReload Extension symbol in your browser shows "connected", then your browser will refresh on changes

  6. Press ⌘S every time you make changes. It’ll be faster than waiting for the dev tools to detect the changes.

About

Dynamic Websites with Htmx + WebComponents + Kotlinx.Html

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages