Skip to content
  • Learning paths
  • Challenges
  • Solutions
  • Articles
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted almost 2 years ago

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

vite
efim•390
@efim
A solution to the Single price grid component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

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.

Code
Select a file

Please log in to post a comment

Log in with GitHub

Community 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
Frontend Mentor logo

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub