Reactive REST on Play2 & ReactiveMongo

Preview:

DESCRIPTION

A quick tutorial focused on building a quick Reactive application with Play2 Framework that features a REST API backed by the asynchronous ReactiveMongo driver. Tutorial and sources available at https://github.com/47deg/bbcdzREST

Citation preview

REST Services with Play2 Scala & ReactiveMongo

Who am I?@raulraja47deg.comraulraja.comScala, Java, Objective-C

MAIN TOOLS TO BUILD THIS APP

App frameworks are like hipsters, always looking for the next cool thing.

There is a new kid on the block...REACTIVE APPS

Only one thing is better than reactive apps.

Monkey beard JORGE!

Let’s get started

Create the APP

Run it!

Play uses conf/routes to map http requests to controller actions

Play projects are SBT projects, here we add the dependencies

Play plugins are registered in conf/play.plugins

In conf/application.conf we add things like DB settings

In DEV mode you can see the configured routes on a bogus URL

Controllers implement the actions

Let’s build it!

If you did not attend the session a full tutorial is here

https://github.com/47deg/bbcdzREST

Become a Scala Master

For comprehensionsCase Classes

FuturesOptionsTraitsEither

Pattern MatchingMonadsActorsDSL’s

...

Recommended