News for hackers. Stuff that matters.
Re:Ask HN: Simplest stack to build web apps in 2021? by recursivedoubts on Monday November 22, 2021 @07:21PM (#29313219)
Re:Ask HN: Simplest stack to build web apps in 2021? by animesh on Tuesday November 23, 2021 @03:23AM (#29315730)
Thanks for HTMX and your essays. Today I was reading HTMX documentation on what to do when we design API-first for a particular project but don't want any of the frontend magic aka SPA. I found immediately that I need to use both json_enc and client-side-templates extensions. Hope I am on the right path.
Re:Ask HN: Simplest stack to build web apps in 2021? by recursivedoubts on Tuesday November 23, 2021 @08:27AM (#29317507)
hi animesh, that would only be the case if you are trying to retrofit htmx on top of an existing JSON API

if it is greenfield development, it is much better to simply return SSR HTML and avoid that complexity

you can join the discord for more immediate help:

https://htmx.org/discord

Re:Ask HN: Simplest stack to build web apps in 2021? by animesh on Tuesday November 23, 2021 @10:42AM (#29319102)
That makes sense. I didn't think about it that way, but traditional MVC views would do just as well I guess for greenfield work.