htmx, ScalaTags and ZIO HTTP - Single-Page Web Applications in Scala
Vložit
- čas přidán 16. 06. 2024
- GitHub: github.com/rockthejvm/scalata...
ZIO course: rockthejvm.com/p/zio
This video is a demonstration of a small web application written in Scala, called Neon Pages: a catalogue of contacts where you can add, edit, remove and bulk-edit data with instant feedback and persistence.
The application is written in Scala with
- ScalaTags with server-side rendering (SSR)
- htmx for custom HTML attributes which handle SPA flows
- ZIO HTTP for server endpoints
- ZIO for effects
- Quill for database
You can clone the Git repository and edit the application to your heart's desire, and create your own full-blown SPAs with the stack inside. This video discusses the architectural decisions and best practice for writing a similar application.
Timeline:
0:00 Intro & app overview
2:13 Code overview
3:31 Database Layer
5:45 Repository Layer
8:00 Service Layer
11:41 Controller Layer
14:30 htmx
17:23 htmx in ScalaTags
20:29 Running the Application
Follow Rock the JVM on:
LinkedIn: / rockthejvm
Twitter: / rockthejvm
Blog: Blog: blog.rockthejvm.com
-------------------------------------------------------------------------
Home: rockthejvm.com
------------------------------------------------------------------------- - Věda a technologie
❤ Thanks Daniel. ZIO and HTMX in one video, 2 things I wanted to learn more about! These bit more "real world" examples help out a ton with things like how to structure the code which always trips me up.
After some time trying to run the project I saw java 11 has a problem executing the code, so as requirement it needs java 17. Good job Daniel! all zio courses are amazing 🚀
Amazing! Thank you ❤
Would love to see a kotlin/arrow/htmx version 😍
Ah yes, what an amazing resource, thank you Daniel!!
Nice project organization ❤
Impressive thumbnails
Scala community should plan to create something like python stream-lit to build interactive data dashboards and web app's
Hey brother! Love your vids as I am currently messing with Scala. I am also learning more about another JVM language called Flix! Please check it out sometime, it combines logic programming with more "traditional" hybrid imperative/functional that you are more used to in Scala. Maybe even do a video on Flix :)
its better to build a course in rock the jvm using this tech may be building a real estate app with real world live data using HTMX
Hi Daniel, do have "ZIO Rite of Passage" course in Udemy ? Can you please upload !!
On the Rock the JVM site only
I saw lots of your courses on udemy - not sure why wouldn’t you upload “ZIO rite of passage “ too.
@@haroonalishah1940 He lose money on Udemy.