GitHub: https://github.com/rockthejvm/scalata...
ZIO course: https://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: https://blog.rockthejvm.com
-------------------------------------------------------------------------
Home: https://rockthejvm.com
-------------------------------------------------------------------------