Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions example/scalalib/web/11-todo-webapp-scalasql/build.mill
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
package build
import mill.*, scalalib.*

object `package` extends ScalaModule {
def scalaVersion = "3.7.1"
def mvnDeps = Seq(
mvn"com.lihaoyi::cask:0.9.1",
mvn"com.lihaoyi::upickle:4.3.0",
mvn"com.lihaoyi::scalatags:0.13.1"
)

object test extends ScalaTests, TestModule.Utest {
def mvnDeps = Seq(
mvn"com.lihaoyi::utest::0.8.9",
mvn"com.lihaoyi::requests::0.6.9"
)
}
}

// This example demonstrates how to set up a simple Scala webserver
// implementing the popular Todo-MVC demo application. It includes a test suite
// that spins up the web server locally and makes HTTP requests against it.

/** Usage

> ./mill test
+ webapp.WebAppTests.simpleRequest...

> ./mill runBackground

> curl http://localhost:${PORT:-8080}
...What needs to be done...
...

> ./mill clean runBackground

*/
Loading