Table of Contents
Quickstart 🔗
Get started quickly with Sharaf framework.
Mill 🔗
def ivyDeps = super.ivyDeps() ++ Agg(
ivy"ba.sake::sharaf-undertow:0.13.0"
)
def scalacOptions = super.scalacOptions() ++ Seq("-Yretain-trees")
Sbt 🔗
libraryDependencies ++= Seq(
"ba.sake" %% "sharaf-undertow" % "0.13.0"
),
scalacOptions ++= Seq("-Yretain-trees")
Scala CLI 🔗
Create a file my_script.sc
with the following content:
//> using dep ba.sake::sharaf-undertow:0.13.0
and then run it with:
scala my_script.sc --scala-option -Yretain-trees
Examples 🔗
- Scala CLI examples, standalone examples using Scala CLI
- Scala CLI HTMX examples, standalone examples featuring HTMX
- API example featuring JSON and validation
- full-stack example featuring HTML, static files and forms
- sharaf-todo-backend, implementation of the todobackend.com spec, featuring CORS handling
- Username+Password form login with Pac4J
- JWT auth with Pac4J
- OAuth2 login with Pac4J
- Snunit demo app
- PetClinic implementation, featuring full-stack app with Postgres db, config, integration tests etc.
- Giter8 template for fullstack app