万本电子书0元读

万本电子书0元读

顶部广告

Mastering Play Framework for Scala电子书

售       价:¥

4人正在读 | 0人评论 9.8

作       者:Shiti Saxena

出  版  社:Packt Publishing

出版时间:2015-05-29

字       数:83.7万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
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.
目录展开

Mastering Play Framework for Scala

Table of Contents

Mastering Play Framework for Scala

Credits

About the Author

Acknowledgments

About the Reviewers

www.PacktPub.com

Support files, eBooks, discount offers, and more

Why subscribe?

Free access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Errata

Piracy

Questions

1. Getting Started with Play

Venturing into the world of Play

A sample Play app

Building a Play application using Activator

The build definition

The source code

Request handling process

Creating a TaskTracker application

Adding a new task

Deleting a task

Summary

2. Defining Actions

A dummy Artist model

Actions

Actions with parameters

Request body parsers

Extending a parser

Exploring the results

Asynchronous Actions

Content negotiation

Filters

Action composition

The need for an Action composition

Differentiating between Action composition and filters

Customized requests

The need for a user object

Troubleshooting

Summary

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

4. Exploring Views

Diving into Scala templates

Building a view

Generating forms

Adding constraints on data

Handling errors

Form-field helpers

Internationalization

Supporting views in multiple languages

Understanding internationalization

Scala templating in Play

Understanding the working of Twirl

Troubleshooting

Summary

5. Working with Data

Introducing models

JDBC

Anorm

Slick

ReactiveMongo

The Cache API

Troubleshooting

Summary

6. Reactive Data Streams

Basics of handling data streams

Iteratees

Enumerator

Using the Concurrent object

Unicast

Broadcast

Enumeratees

Binding an Enumeratee to an Enumerator

Binding an Enumeratee to an Iteratee

Summary

7. Playing with Globals

GlobalSettings

The life cycle of an application

Meddling with an application's life cycle

The request-response life cycle

Fiddling with the request-response life cycle

Manipulating requests and their responses

Tackling errors and exceptions

Summary

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

9. Testing

The setup for writing tests

Unit testing

Dissecting PlaySpecification

Unit testing a controller

Using traits for controllers

Using dependency injection

Functional testing

Using Specs2

Using ScalaTest

Summary

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

11. Web Services and Authentication

Calling web services

OpenID

OAuth

Summary

12. Play in Production

Deploying a Play application

Using the start command

Using a distribution

Universal distribution

Debian distribution

The rpm distribution

Windows distribution

Configuring for production

Enabling SSL

Using a load balancer

Apache HTTP

The nginx server

lighttpd

High Availability Proxy

Troubleshooting

Summary

13. Writing Play Plugins

Plugin definition

Plugin declaration

Exposing services through plugins

Tips for writing a plugin

Summary

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部