mill icon indicating copy to clipboard operation
mill copied to clipboard

Add versions of `example/scalalib/web/1-todo-webapp` and `3-todo-http4s` that access a database using Scalasql (300USD Bounty)

Open lihaoyi opened this issue 8 months ago • 4 comments


From the maintainer Li Haoyi: I'm putting a 300USD bounty on this issue, payable by bank transfer on a merged PR implementing this.

See https://github.com/orgs/com-lihaoyi/discussions/6 for other bounties and the terms and conditions that bounties operate under


  1. The 1-todo-webapp example can make use of the Cask repo example https://github.com/com-lihaoyi/cask/tree/master/example/todoDb
  2. We'll need to update the Http4s example similarly to make use of a database
  3. Both updated examples should include unit tests using H2 and integration tests using testcontainers postgres, similar to the Mill spring-boot examples https://github.com/com-lihaoyi/mill/tree/main/example/javalib/web/3-todo-spring-boot
  4. We should move the CSS and JS to using Webjars, similar to the 3-todo-spring-boot example, to demonstrate that functionality
  5. These examples should have appropriate documentation explanations and be included on the mill doc-site, underneath their respective more-minimal examples

lihaoyi avatar Mar 28 '25 09:03 lihaoyi

@lihaoyi I believe i can solve this, will raise a PR ...

himanshumahajan138 avatar Mar 30 '25 12:03 himanshumahajan138

@himanshumahajan138 are you still going to work on this?

albassort avatar Apr 09 '25 06:04 albassort

I'm also interested in this.

scarf005 avatar Apr 09 '25 06:04 scarf005

@albassort @scarf005

Its Clearly Mentioned in Bounty Fourm That anyone can Work untill it gets Merged so there is no restriction

Talking about me so yesterday was GSOC last submission day and now i am free to work on this issue so yes i will also work on this...

himanshumahajan138 avatar Apr 09 '25 06:04 himanshumahajan138

@lihaoyi Required a little Guidance....

can we use static js as its not available in webjars directly (if u know dependency please provide)? please see this code the problem is that i haven't found any mvn dependency which will provide us the js for webjars but we have base.js but this is also giving some error for learn.json file not found

Image

now please explain me how can we have the js for todo as static or u have some dependency for this

see what i am using currently

Image

what's in my mind is to use it like this instead of using todomvc-common

Image Image

this above approach works perfect but here we have to use js statically

please help me here....

himanshumahajan138 avatar Jul 12 '25 11:07 himanshumahajan138

@lihaoyi any update thoughts on this ???

himanshumahajan138 avatar Jul 15 '25 09:07 himanshumahajan138