- In Play framework, new applications have a standard welcome page as shown below.
- Following are some of the functionalities covered in Play framework for full-stack development.
- Let us check how Play is different from Java environment.
- The environment is ready to test our first Play application.
- As Play is a Java framework, all Java development tools can be used as it is.
In this article we will learn how to create web applications using play framework give pointers to start development with hands on coding.
@jonatthan1992: Learn How to Create Web Applications Using Play Framework and Java #reactjs #code
Play is an open source Java based web application development framework. The framework has been written in Scala with a Java wrapper API. It follows the MVC (Model-View-Controller) architectural model and RESTful architecture. The main focus of Play framework is to increase productivity and support agile development methodology. The main differentiators of the Play framework are rapid application development, hot code reloading and browser based error display. Play framework based web applications can be written in both Scala and Java languages. Play applications can also be packaged as WAR file for distributed deployment in application servers. So, Play can also be considered as a clean alternative to Java EE development stack.
How Play framework is different from Java?
As Play is a Java framework, all Java development tools can be used as it is. So, anybody using the Java development platform, can use it without switching to other IDE or languages or libraries. Play just helps developers switch to more productive Java development environment. Let us check how Play is different from Java environment.
Apart from the above points, Play also supports JPA, template engine, HTTP to code mapping, etc. for efficient web application development.
What you can do with Play framework?
Play framework is a full-stack web application development framework. It is inspired by Java technology platform and contains all the tools for complete web application development. Following are some of the functionalities covered in Play framework for full-stack development.
The modular approach in Play framework supports integration with various external systems. The existing Java code, libraries, static resources can also be integrated seamlessly.
Following are the steps to be completed to set the stage ready for application development. Let us have a look at the configuration and installation details.
The first pre-requisite is to have Java (version 5 or higher) installed in your system. You can also install IDE or use any text editor.
After this, add the path (here c:\Play) to the system class path. It will help us use the Play commands from any location on the command prompt. The following screen shot will show the installation once ‘Play’ is typed on the command prompt.
Now, the environment is ready to test our first Play application.
In this section, we will create a project using the Play framework. Following, are the steps to be followed.
First, open the command prompt and type the following command
Now, it will ask for the application name as shown below.
Play framework is based on a light weight, MVC, stateless architectural model. It provides ease of development with minimum resource consumption. Play application can be developed by using Scala or Java technology. So, Java developers find it more useful while shifting to more productive development environment. And the best part is, without throwing away the existing Java resources. Play is going to get more popularity in near future. This article will give pointers to start development with hands on coding. Developers can follow the instructions and implement it easily.