deej-io / mml-htmx-demo

A scrappy experiment to explore server-side-rendering of MML documents

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SSR MML with HTMX Demo

CAVEATS:

  • This is a rough PoC, I make no guarantees about its quality.
  • This is HTMX taken to the extreme and is not meant to any best practices - it is of an exploration of what can be done with SSR mml.

This is an experiment to try run an networked DOM that is controlled entirely using server-side rendered HTML and HTMX for interactivity.

It currently requires a patched version of JSDOM to fix the XPathExpression.evaluate implementation (jsdom/jsdom#3719).

Requirements

  • Node.js
  • npm
  • go

Running the servers

Start the API server:

cd api
go run github.com/cosmtrek/air@latest

Start the MML server:

cd mml-server
npm start

Open client endpoint in your browser

http://localhost:808k

About

A scrappy experiment to explore server-side-rendering of MML documents


Languages

Language:Go 71.3%Language:JavaScript 14.5%Language:Dockerfile 14.2%