Skip to content

Add examples of mill + cask + scalasql #4924

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

chaitanyawaikar
Copy link

@chaitanyawaikar chaitanyawaikar commented Apr 12, 2025

Description

This PR solves the issue #4799. It includes creation of two new examples of the very popular TODO MVC app

  1. Cask + Scalasql as example 10-todo-webapp-cask-scalasql
  2. Http4s + Scalasql as example 11-todo-http4s-scalasql

Unit tests and a short documentation have been added for each of these modules.

@lihaoyi Once the approach/implementation looks fine, I can proceed to adding the integration tests.

@chaitanyawaikar chaitanyawaikar changed the title [WIP] Add examples of mill + cask + scalasql Add examples of mill + cask + scalasql Apr 13, 2025
@chaitanyawaikar chaitanyawaikar marked this pull request as ready for review April 13, 2025 13:24
@@ -0,0 +1,265 @@
#!/usr/bin/env sh
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't need the mill file in the examples, it gets filled in automatically when publishing

ivy"com.h2database:h2:2.2.224"
)

object test extends ScalaTests {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's have one test suite using H2 in memory and one integration suite using PostgreSQL via testcontainers.

@lihaoyi
Copy link
Member

lihaoyi commented Apr 16, 2025

@chaitanyawaikar left some comments but otherwise looks reasonable

chaitanyawaikar and others added 4 commits April 18, 2025 18:20
"[6549-0]   [error] -- [E8] /home/runner/work/mill/mill/out/example/scalalib/web/11-todo-http4s-scalasql/native/server/testForked.dest/worker-0/sandbox/run-2/build.mill:7:5
[6549-0]   [error] 7 ?    ivy"org.http4s::http4s-ember-server::0.23.30",
[6549-0]   [error]   ?    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[6549-0]   [error]   ?value ivy is not a member of StringContext, but could be made available as an extension method.
[6549-0]   [error]   ?
[6549-0]   [error]   ?One of the following imports might fix the problem:
[6549-0]   [error]   ?
[6549-0]   [error]   ?  import coursier.ivyRepositoryString
[6549-0]   [error]   ?  import coursier.util.StringInterpolators.SafeIvyRepository
[6549-0]   [error]   ?
[6549-0]   [error]   ?
[6549-0]   [error] -- [E8] /home/runner/work/mill/mill/out/example/scalalib/web/11-todo-http4s-scalasql/native/server/testForked.dest/worker-0/sandbox/run-2/build.mill:8:5"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants