Skip to content
No description, website, or topics provided.
Scala HTML
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docker
project
src
.gitignore
README.md
build.sbt
scalastyle_config.xml

README.md

scalatraseed

Scala Steward badge

Demo project based on sbt new scalatra/scalatra.g8. It contains some of the features demonstrated on http://scalatra.org/guides/2.6/

Features

  • logging with logback
  • debug configuration
  • api endpoint (APIServlet) with
    • Named parameters
    • specific status code
    • incoming/outoging json support
    • 404/not found handling
    • server side exception handling
    • handling cookies and session attributes
  • WebSockets support (use chrome extension Smart Websocket Client to test)
  • sql DB support
  • linting using scalastyle (recognized automatically by intellij)
  • packaging to app into docker container
  • http client
  • basic metrics

Debug

Configure Intellij

First run jetty and after that run the debug config

Build & Run

$ cd scalatraseed
$ sbt
> ~;jetty:stop;jetty:start
> browse

If browse doesn't launch your browser, manually open http://localhost:8080/ in your browser.

Docker

sbt docker:publishLocal
cd docker
docker-compose up
You can’t perform that action at this time.