Mastering play framework for scala leverage the awesome features of play framework to build scalable, resilient, and responsive applications
This book is intended for those developers who are keen to master the internal workings of Play Framework to effectively build and deploy web-related apps.
Otros Autores: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Birmingham, [England] ; Mumbai, [India] :
Packt Publishing
2015.
|
Edición: | 1st edition |
Colección: | Community experience distilled.
|
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009629304006719 |
Tabla de Contenidos:
- Cover; Copyright; Credits; About the Author; Acknowledgments; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Getting Started with Play; Venturing into the world of Play; A sample Play app; Building a Play application using Activator; Creating a TaskTracker application; Adding a new task; Deleting a task; Summary; Chapter 2: Defining Actions; A dummy Artist model; Defining Actions; Actions with parameters; Request body parsers; Extending a parser; Exploring results; Asynchronous Actions; Content negotiation; Filters; Action composition
- Need for an Action compositionDifferentiating between action composition and filters; Customized requests; Need for a user object; Troubleshooting; Summary; Chapter 3: Building Routes; Introduction to Play routes; Automatic generation of routes_routing.scala; Reverse routing; JavaScript reverse routing; Assets; Client-side libraries; Configuring route definitions; Dynamic paths; Static paths; Configuring request parameters; Troubleshooting; Summary; Chapter 4: Exploring Views; Diving into Scala templates; Building a view; Generating forms; Adding constraints on data; Handling errors
- Form-field helpersInternationalization; Supporting views in multiple languages; Understanding internationalization; Scala templating in Play; Understanding the working of Twirl; Troubleshooting; Summary; Chapter 5: Working with Data; Introducing models; JDBC; Anorm; Slick; ReactiveMongo; The Cache API; Troubleshooting; Summary; Chapter 6: Reactive Data Streams; Basics of handling data streams; Iteratee; Enumerator; Using the Concurrent object; Unicast; Broadcast; Enumeratee; Binding Enumeratee to an Enumerator; Binding an Enumeratee to an Iteratee; Summary; Chapter 7: Playing with Globals
- GlobalSettingsThe life cycle of an application; Meddling with the application's life cycle; The request-response life cycle; Fiddling with the request-response life cycle; Manipulating requests and their responses; Tackling errors/exceptions; Summary; Chapter 8: WebSockets and Actors; An introduction to WebSockets; WebSockets in Play; Actor Model; Introducing Akka Actors; WebSocket using Iteratee; WebSocket using Actors without Iteratees; Closing a WebSocket; Using FrameFormatter; Troubleshooting; Summary; Chapter 9: Testing; Setup for writing tests; Unit testing; Dissecting PlaySpecification
- Unit testing a controllerUsing traits for controllers; Using dependency injection; Functional testing; Using Specs2; Using ScalaTest; Summary; Chapter 10: Debugging and Logging; Debugging a Play application; Configuring an IDE for debugging; Experimenting in a Scala console; Logging; Play's logging API; Log configuration in Play; Log levels; Summary; Chapter 11: Web Services and Authentication; Calling web services; OpenID; OAuth; Summary; Chapter 12: Play in Production; Deploying a Play application; Using the start command; Using a distribution; Universal distribution; Debian distribution
- The rpm distribution