Chapter 11. Modules and deployment

 

This chapter covers

  • Using modules and creating your own
  • Publishing your modules
  • Splitting your application into multiple sub-applications
  • Deploying your application
  • Configuring the production environment

Now that we’ve seen how to do a lot of things for ourselves in Play, it’s time to see how to use code that others have made. This chapter explains how to use Play modules, but also how to create your own and publish them so that others can use them. The second half of the chapter deals with how to deploy your application to production on your own machines or in the cloud. It also explains how to set up a front-end proxy and use SSL.

11.1. Modules

Any kind of serious software development project will use libraries to decrease the effort required from developers. JVM developers have access to a large body of libraries that can save them a lot of time and stop them re-inventing the wheel. In chapter 2, we saw how we could use build.sbt to add a dependency on any library to use any Java library, just as you normally would. But Play provides an additional form of code reuse in the form of modules. Currently available modules for Play 2 provide anything from alternate template engines to NoSQL-database layers. This section will explain how to use a commonly used module and, later on, how to build one yourself.

11.2. Splitting your application into multiple sub-applications

 
 
 

11.3. Deploying to production

 
 
 

11.4. Summary

 
 
 
sitemap

Unable to load book!

The book could not be loaded.

(try again in a couple of minutes)

manning.com homepage