Tailwind, Scala SSR, Scalatags & Cask, deployed with docker image

Solution retrospective
First step towards learning HTMX - backend rendering empowered with partial page updates with minimal JS Selected this exercise to first do a static page, to try out server setup, page generation, deployment.
The project is a server, which serves HTML pages. So it's a runnable program which i need to host somewhere. Prevoius "frontend only tasks" I hosted on CloudFlare pages, because it was easy to compile ScalaJS into static site and serve the files. Here i'm deploying to render.com, because they provide a free tier for services deployed via docker image. The free tier shuts down the service after 15 minutes of inactivity, so please give it a moment to spin up if it takes time to load.
It was a bit hard to finish up the nix packaging, even though it wasn't at all my first interaction. I've also struggled a bit with Scalatags, and cask webserver.
On next exercise I'll try Thymeleaf templates. And then try to move into HTMX interactivity.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on efim's solution.
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord