Java Activator Template for Squbs
Java Scala HTML
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
project
src
tutorial
.gitignore
LICENSE.md
README.md
activator.properties
build.sbt
scalastyle-config.xml

README.md

Getting Started

  1. Run sbt from root directory to enter the interactive mode.

  2. Start the server by using re-start or run.

  3. Run scoverage by ;clean;coverage;test. This is good for Scala code.

  4. Run jacoco by jacoco:cover for Java and Scala code, but with quirks.

  5. URLs:

    • http://localhost:8080/hello: Simple hello response
    • http://localhost:8080/hello/{some_name}: Hello response greeting name and return Json response
    • http://localhost:8080/hello/{some_name}/{delay}: Sends chunked response in intervals with delay in milliseconds
  6. Console URL: http://localhost:8080/adm

  7. sbt docker to create a docker image.

  8. docker run -p 8080:8080 <IMAGE NAME> to run as a docker container.

Most important - have fun!