Announcing Finatra 1.0.0
Contents
After months of work Finatra 1.0.0 is finally available! Finatra is a scala web framework inspired by Sinatra built on top of Finagle.
The API
The API looks like what you’d expect, here’s a simple endpoint that uses route parameters:
|
|
The toFuture
call means that the response is actually a Future, a powerful concurrency abstraction worth checking out.
Testing it is just as easy:
|
|
A super quick demo
|
|
Now you have an /tmp/myapp
you can use:
|
|
A simple app should’ve started up locally on port 7070, verify with:
|
|
You can see the rest of the endpoints at /tmp/myapp/src/main/scala/com/example/myapp/App.scala
Heroku integration
The generated apps work in heroku out of the box:
|
|
Make sure to see the full details in the README and check out the example app.
Props to @twoism and @thisisfranklin for their code, feedback and moral support.