If you have always wanted to learn how to create great Java web applications then this course is for you. This friendly, hands-on course will show you how to overcome the inherent complexity in writing Java web applications by leveraging the Play Framework.
The course starts by showing you how to create a basic agenda application. You’ll then add validations, internationalization and custom error pages before enhancing it using the popular frontend framework Twitter Bootstrap. Additionally you’ll learn how to create modules to re-utilize code for future projects. You’ll finish the course by adding a JSON API to your application so that it can consume Twitter’s API using async requests.
By the end of Play Framework for Web Application Development you will be a more confident developer able to create attractive, fast, and scalable applications using the Play Framework.
Martin Gontovnikas is a software engineer living in Buenos Aires, Argentina. He’s an IT enthusiast who started programming at the age of 12, when he decided that this was going to be his life. Martin is passionate about technology and he always keeps up to date with everything regarding IT.
WebApps made in Java require people to know a lot of tools and frameworks and makes people write a lot of Boilerplate.
Learning the history and the reason why Play! was created now.
Understanding Play!'s advantages in everyday coding compared to other frameworks and checking out real WebApps using Play!.
We create the Agenda project and the Eclipse / NetBeans / IntelliJ files to import them to the IDE.
The database and DDL creation was finished along with the Java model to interact with it.
We are now able to transform URLs to actions.
We are now able to handle requests from the user's browser.
Bind parameters from the request to create objects and save them to the database.
We can create HTML files using the Controllers variable and template inheritance.
The Agenda project is finished so that we can use it to store our friend's information.
We're now sure that the templates are being displayed correctly.
We're now sure that the controllers get the correct information and display them correctly as well.
We're now sure that the URLs and HTTP methods are exactly the ones we wanted.
We're now sure that the application works well when it is live.
When the contact added has an invalid field, it's shown to the user now and not saved in the DB.
We compose actions to use the DRY principle (don't repeat yourself).
Basic auth is used to restrict access to our application.
As the default 404 page is quite ugly, Play! Let’s create our own.
We're going to use messages from Play! to create texts in English and Spanish for our app.
We're going to learn how to use Twitter Bootstrap for form fields and for any other DOM element.
We're going to deploy this app in Heroku, which is free for basic usage.
Modules help us not repeat ourselves and to comply with DRY.
We're creating a module with generic code to use it in another project without copy-pasting.
BodyParsers let us tell Play! how to convert the body of the request to a Java value.
We want to create a new API for creating contacts in our app.
We're going to use JSON library from Play! to return JSON to the user.
Play! provides the WS library to make requests to external URLs.
AsyncResult solves the c10k problem by not creating one thread per request but cycling them while waiting for responses.
Packt has been committed to developer learning since 2004. A lot has changed in software since then - but Packt has remained responsive to these changes, continuing to look forward at the trends and tools defining the way we work and live. And how to put them to work.
With an extensive library of content - more than 4000 books and video courses -Packt's mission is to help developers stay relevant in a rapidly changing world. From new web frameworks and programming languages, to cutting edge data analytics, and DevOps, Packt takes software professionals in every field to what's important to them now.
From skills that will help you to develop and future proof your career to immediate solutions to every day tech challenges, Packt is a go-to resource to make you a better, smarter developer.
Packt Udemy courses continue this tradition, bringing you comprehensive yet concise video courses straight from the experts.