Skip to Content
Scala Reactive Programming
book

Scala Reactive Programming

by Rambabu Posa
February 2018
Intermediate to advanced
552 pages
13h 46m
English
Packt Publishing
Content preview from Scala Reactive Programming

WF Reactive System – frontend

In this section, we will perform the following steps to develop our Reactive System's frontend (wf-frontend) microservice:

  1. Define our WF data model and its form to capture data from end users:
      case class WFForm(city: String, temperature: String) 
 
      object WFForm { 
        val wfForm = Form(mapping( 
          "city" -> nonEmptyText, 
          "temperature" -> nonEmptyText 
        )(WFForm.apply)(WFForm.unapply)) 
      }
  1. Define our WF Reactive System's WebGateway loader, as shown here:
      abstract class WebGateway @Inject()(context: Context) extends BuiltInComponentsFromContext(context) with I18nComponents with AhcWSComponents with LagomServiceClientComponents { override lazy val serviceInfo: ServiceInfo = ServiceInfo( "wf-frontend", Map( "wf-frontend" ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Scala Programming Projects

Scala Programming Projects

Mikael Valot, Nicolas Jorand
Learning Scala

Learning Scala

Jason Swartz
Functional Programming in Scala

Functional Programming in Scala

Runar Bjarnason, Paul Chiusano

Publisher Resources

ISBN: 9781787288645Supplemental Content