Building a Line of Business Enterprise Web App with Play, Scala, and Akka

  • 485 views
Uploaded on

ScalaDays 2013 presentation, detailing my experiences creating an enterprise web application with the Play Framework, Akka, Scala, and various forms of JavaScript including AngularJS

ScalaDays 2013 presentation, detailing my experiences creating an enterprise web application with the Play Framework, Akka, Scala, and various forms of JavaScript including AngularJS

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
485
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
0
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. • http://www.kotancode.com• http://www.kshmusings.com• @KevinHoffman• http://www.facebook.com/kevinhoffmanauthor
  • 2. • REST API using PlayWS & Futures – super easy
  • 3. /apioutstanding
  • 4. implicit val zombieSightingWrites = {( __ “name”).write[String] and( __ “timestamp”).write[Int] and( __ “location”).write[GpsCoordinate]}implicit val zombieSightingReads = {( __ “name”).read[String] and( __ “timestamp”).read[Int] and( __ “location”).read[GpsCoordinate]}implicit val gpsCoordinateReads ….
  • 5. implicit val zombieSightingReads =Json.reads[ZombieSighting]implicit val zombieSightingWrites =Json.writes[ZombieSighting]
  • 6. Web ServerBrowserServerTemplates
  • 7. Web ServerBrowserServerTemplates RESTAPIJavaScript
  • 8. Web ServerBrowserTemplates RESTAPIAngularJSMCV
  • 9. class ImportActorSpec extends TestKit(ActorSystem(“testsystem”))with WordSpec with MustMatchers {// DI in-memory repo actors“An XML Import Actor” must {“Import all messages from file” in {// prepimportActor ! ImportActorProtocol.ImportXml(xml, testActor)expectMsg(ValidationReady)importActor ! GetStatus(testActor)expectMsgPF() {case …}}}}
  • 10. Option[T]