Questions tagged [scalatra]

Scalatra is a tiny Scala web framework, inspired by Sinatra.

Scalatra is a microframework written in Scala. It is a port of the Sinatra framework written in Ruby. Scalatra can be expanded into a minimal but full-featured model-view-controller web framework.

Website: http://scalatra.org/

Source: https://github.com/scalatra/scalatra

309 questions
7
votes
0 answers

How does dropwizard compare to spray or scalatra?

How does the above 3 frameworks compare in terms of 1) Performance 2) Ease of Use 3) Real world tests and other relevant parameters?
Kamesh Rao Yeduvakula
  • 1,215
  • 2
  • 15
  • 27
7
votes
1 answer

How do I set up a multi-stage test pipeline in sbt?

Specifically, for a Scalatra project, but the question probably applies to most. For example, I typically want to run: unit tests code quality checks (coverage, duplication, complexity, jsLint!) integration tests (not too many!) acceptance tests…
Korny
  • 1,988
  • 1
  • 18
  • 16
7
votes
2 answers

Scala web framework performance on raspberry pi

I need to write a small Web based UI that would run on a raspi and since I'm trying to pull some Scala into my daily work, I'd like to use one of Play, Scalatra or Lift. Does anybody have experience with developing for Raspberry Pi with these…
Chirlo
  • 5,989
  • 1
  • 29
  • 45
7
votes
1 answer

Scalatra / Slick and insert IF NOT EXISTS

I am a newbie so hoping for some patience. :) I am trying to populate two tables if a value does not exist. Basically I have: TABLE b ( id VARCHAR(254) PRIMARY KEY NOT NULL ); TABLE d ( id VARCHAR(254) PRIMARY KEY NOT NULL, relay INT…
Will I Am
  • 2,614
  • 3
  • 35
  • 61
7
votes
1 answer

Adding OAuth to a Scalatra web service

I am looking to build a Scalatra based API. One of the requirements is OAuth authentication. I noticed the guide for OAuth isn't yet put up on the official Scalatra site. Is the best way to currently add OAuth support by figuring out how to add an…
randombits
  • 47,058
  • 76
  • 251
  • 433
6
votes
2 answers

Scalatra - how do we do an internal redirect / forward of request

I want to call another internal url from my scalatra 'controller'. I can't do a simple redirect, as there's some security settings that mean a user has access only to the first url. Is there a way to do this?
Louis Sayers
  • 2,162
  • 3
  • 30
  • 53
6
votes
2 answers

deploying scalatra onto Jetty

How does one deploy scala or scalatra onto Jetty servlet container? Does anyone have experience or can point me to some resources online?
Joyce
  • 1,431
  • 2
  • 18
  • 33
6
votes
2 answers

How do I overcome "There may be incompatibilities..." SBT warning?

I'm newish to SBT and am not sure what to do about a rather scary warning from the evicted task: [warn] There may be incompatibilities among your library dependencies; run 'evicted' to see detailed eviction warnings. The full task output…
Bob Kuhar
  • 10,838
  • 11
  • 62
  • 115
6
votes
1 answer

Does scalatra use circumflex behind the scenes?

Does scalatra use circumflex behind the scenes (or vise versa)? What are the key differences between them, and which one would you use? Both frameworks are inspired by Sinatra and from a glance look identical. Request routing with scalatra: class…
Vasil Remeniuk
  • 20,519
  • 6
  • 71
  • 81
6
votes
1 answer

Using typesafe's config to manage my database connection

This is normally a straight forward problem, but I'm not entirely sure how to solve this in Scala given that it is type sensitive. I have a class where I setup a simple connection to my MongoDB instance. Right now locally, I do the god awful notion…
randombits
  • 47,058
  • 76
  • 251
  • 433
6
votes
1 answer

Using Scalatra 2.2.1 with Maven

Has anyone been successful for using Maven and Scalatra 2.2.1? I found this old archetype https://github.com/Srirangan/scalatra-maven-prototype and tried to update the dependency versions, but I keep hitting incompatibility issues. I'd like to…
merejy
  • 414
  • 4
  • 17
6
votes
1 answer

Scala trait syntax

I am looking over the documentation for Scalatra and noticed an interesting snippet of code for syntax I haven't seen yet on : http://www.scalatra.org/2.2/guides/persistence/introduction.html Specifically, it's this bit: trait DatabaseSessionSupport…
randombits
  • 47,058
  • 76
  • 251
  • 433
5
votes
2 answers

What Scala concepts are being used to make Scalatra DSL work?

I'm trying to get into Scala by trying to use Scalatra. I finished Martin Odersky course on coursera some time ago but I still have a hard time understaning how this works: package com.example.app import org.scalatra._ class HelloWorldApp extends…
atok
  • 5,880
  • 3
  • 33
  • 62
5
votes
2 answers

Starting Scala application in SBT for integration test

I have a Scalatra web service that runs with embedded Jetty. I'd now like to write integration tests that: start the service (using the main method of the application) run the tests (driving the HTTP interface) stop the service. This should all…
thomson_matt
  • 7,473
  • 3
  • 39
  • 47
5
votes
2 answers

Scala using JSON and/or XML templates

I am using Scalatra, but this question should be valid for any Scala programming. I come from a Ruby on Rails background. Simply put, using templating systems such as XML Builder or jsonbuilder (https://github.com/rails/jbuilder), I had full control…
randombits
  • 47,058
  • 76
  • 251
  • 433
1
2
3
20 21