kannon-email / kannon

✉️ Cloud-Native massive mail sender for Kubernetes!
Apache License 2.0
65 stars 10 forks source link

Creates the Web Dashboard #33

Open davideimola opened 3 years ago

davideimola commented 3 years ago

User Story

As a user I would like to have a web dashdbord for composing and sending emails.

Detailed Description

Creates the first iteration of the web dashboard of kannon. I must able to create and send email.

Anything else

We are thinking to use something like React or Vue, but we are opened for proposals.

gedw99 commented 7 months ago

As a golang coder I use HTMX. It's clean easy and fast.

https://htmx.org has docs and examples running to get a feel for it. Its a single js include

https://www.reddit.com/r/htmx/ is a good place to see what others are doing with it.

https://github.com/paganotoni/todox is a nice golang example.

https://github.com/mikestefanello/pagoda/blob/main/pkg/htmx/htmx.go is a more complete example with Web Login system using PostreSQL. It's a good match for as basis with Cannon I feel.

CSS is easy using tailwind, and there are many examples if it being used this way.

Its reactive, so you can update any part of the page in response to anything happening on the backend.

There is no Node or other dependencies so CI and CD is easy.

It's golang templates, which we already use. https://github.com/kannon-email/kannon/blob/main/pkg/api/adminapi/templates.go for example.

It's easy to wire up and reason about unlike react.

Its keeps the frontend and backend in sync, because when the backend changes the frontend can be done by the same golang dev.

It's very fast at runtime still.