Slide 1

Slide 1 text

REST Services with Play2 Scala & ReactiveMongo

Slide 2

Slide 2 text

Who am I? @raulraja 47deg.com raulraja.com Scala, Java, Objective-C

Slide 3

Slide 3 text

MAIN TOOLS TO BUILD THIS APP

Slide 4

Slide 4 text

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!

Slide 5

Slide 5 text

Let’s get started

Slide 6

Slide 6 text

Create the APP

Slide 7

Slide 7 text

Run it!

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

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

Slide 10

Slide 10 text

Play projects are SBT projects, here we add the dependencies

Slide 11

Slide 11 text

Play plugins are registered in conf/play.plugins

Slide 12

Slide 12 text

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

Slide 13

Slide 13 text

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

Slide 14

Slide 14 text

Controllers implement the actions

Slide 15

Slide 15 text

Let’s build it! If you did not attend the session a full tutorial is here https://github.com/47deg/bbcdzREST

Slide 16

Slide 16 text

Become a Scala Master For comprehensions Case Classes Futures Options Traits Either Pattern Matching Monads Actors DSL’s ...