Book Image

Learning Play! Framework 2

By : Andy Petrella
Book Image

Learning Play! Framework 2

By: Andy Petrella

Overview of this book

<p>The Learning Play! Framework 2 has been created for web developers that are building web applications. The core idea is to focus on the HTTP features and to enable them through a simplification lens. Building a web application no longer requires a configuration phase, an environment setup, or a long development lifecycle - it's integrated!<br /><br />Learning Play! Framework 2 will enable any web developers to create amazing web applications taking advantage of the coolest features. It's the fastest way to dive into Play!, focusing on the capabilities by using them in a sample application. Although essentially Java based code, a Scala version is presented as well – giving an opportunity to see some Scala in action.<br /><br />After setting up the machine and learning some Scala, you will construct an application which builds from static to dynamic, before introducing a database. <br /><br />Then we'll focus on how data can be consumed and rendered in several ways. This will enable some real time communication through WebSocket and Server-Sent Event – on both server and client sides.</p> <p>The book will end with testing and deployment, which completes any web development project.</p>
Table of Contents (20 chapters)
Learning Play! Framework 2
Credits
About the Author
Acknowledgement
About the Reviewers
www.packtpub.com
Preface
Materials
Index

Chapter 9. Code Once, Deploy Everywhere

In this book, we saw how the Play! Framework 2 can be used to create great web applications. However, we only saw them running on our machine, which is a dev machine. So far, so good, but a web application is not meant to be used this way; it has to be productionized, which requires it to be deployed on a so-called Prod server . A Play! Framework 2 application can be deployed in several ways, for example, in a servlet container, such as Tomcat. However, in this chapter we'll concentrate on a particular use case; cloud deployment on a Platform as a Service (PaaS).

But, wait! There is something that a web application needs before before it can be released to the end user. It needs a neutral environment, which asserts that the application is delivering its features correctly. Nowadays we like the Release Early, Release Often vision, but for that to happen we need to have an automated and continuous eye on its quality.

That's why we end up in a more general...