Chapter 1. Basics of the Play Framework

In this chapter, we will cover:

  • Downloading and installing the Play framework
  • Creating a new application
  • Defining routes as the entry point to your application
  • Configuring your application via application.conf
  • Defining your own controllers
  • Defining your own models
  • Using Fixtures to provide initial data
  • Defining your own views
  • Writing your own tags
  • Using Java Extensions to format data in your views
  • Adding modules to extend your application
  • Using Oracle or other databases with Play
  • Understanding suspendable requests
  • Understanding session management

Introduction

Let's begin with Play framework. There is no need for XML configuration, no need to create a war file, just start off with a commandline tool. Play is a full stack. Everything is bundled. All you need to do is download the Play framework, unzip it, and use it.

Once you install it, this chapter will give you a head start about the first steps to carry out after you create you first application. It will provide you the basic knowledge needed for any advanced topic, which is described in the later chapters. After this chapter you know where to look for certain files and how to change them.

Some features presented here are also shown in the only example application for the first chapter, which you can find at examples/chapter1/basic-example.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.210.205