scommons / scommons-client   1.0.0

Apache License 2.0 Website GitHub

Common Scala.js, React.js web UI utilities and components

Scala versions: 2.13 2.12
Scala.js versions: 1.x 0.6

CI Coverage Status scala-index Scala.js

Scala Commons Client

Common Scala.js, React.js web-client utilities and components.

Showcase/Demo UI

To see the showcase/demo UI with all the components live use the following link:

https://scommons.github.io/scommons-client/showcase/

How to add it to your project

val scommonsApiVer = "1.0.0-SNAPSHOT"
val scommonsReactVer = "1.0.0-SNAPSHOT"
val scommonsClientVer = "1.0.0-SNAPSHOT"
val scommonsServiceVer = "1.0.0-SNAPSHOT"

libraryDependencies ++= Seq(
  // shared
  "org.scommons.api" %%% "scommons-api-core" % scommonsApiVer,
  "org.scommons.api" %%% "scommons-api-joda-time" % scommonsApiVer,

  // client/js only
  "org.scommons.api" %%% "scommons-api-xhr" % scommonsApiVer,
  "org.scommons.client" %%% "scommons-client-ui" % scommonsClientVer,
  "org.scommons.react" %%% "scommons-react-test-dom" % scommonsReactVer % "test",

  // server/jvm only
  "org.scommons.service" %% "scommons-service-play" % scommonsServiceVer,
  "org.scommons.api" %% "scommons-api-play-ws" % scommonsApiVer % "test"
)

Latest SNAPSHOT version is published to Sonatype Repo, just make sure you added the proper dependency resolver to your build.sbt settings:

resolvers += "Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/"

How to use it

How to Build

To build and run all the tests use the following command:

sbt clean test

How to Run Showcase/Demo locally

Please, see the README.md in showcase sub-project page.

Documentation

You can find more documentation here