Instant Play Framework Starter
()
About this ebook
Related to Instant Play Framework Starter
Related ebooks
Meteor Design Patterns Rating: 0 out of 5 stars0 ratingsPHPEclipse: A User Guide Rating: 3 out of 5 stars3/5Opa Application Development Rating: 0 out of 5 stars0 ratingsAkka Cookbook Rating: 2 out of 5 stars2/5Symfony2 Essentials Rating: 0 out of 5 stars0 ratingsRedmine Plugin Extension and Development Rating: 0 out of 5 stars0 ratingsResponsive Design High Performance Rating: 0 out of 5 stars0 ratingsLearning NServiceBus Sagas Rating: 0 out of 5 stars0 ratingsPersistence in PHP with Doctrine ORM Rating: 0 out of 5 stars0 ratingsCodeIgniter Web Application Blueprints Rating: 0 out of 5 stars0 ratingsApache Solr PHP Integration Rating: 0 out of 5 stars0 ratingsCocos2D Game Development Essentials Rating: 0 out of 5 stars0 ratingsBeginning Cryptography with Java Rating: 3 out of 5 stars3/5Linux Programming Tools Unveiled Rating: 0 out of 5 stars0 ratingsSeven Deadliest Unified Communications Attacks Rating: 0 out of 5 stars0 ratingsAJAX Interview Questions, Answers, and Explanations: AJAX Certification Review Rating: 0 out of 5 stars0 ratingsLearning Xamarin Studio Rating: 0 out of 5 stars0 ratingsCEH v9: Certified Ethical Hacker Version 9 Practice Tests Rating: 0 out of 5 stars0 ratingsPHP Oracle Web Development: Data processing, Security, Caching, XML, Web Services, and Ajax Rating: 0 out of 5 stars0 ratingsPractical Play Framework: Focus on what is really important Rating: 0 out of 5 stars0 ratingsHands-on Ansible Automation: Streamline your workflow and simplify your tasks with Ansible (English Edition) Rating: 0 out of 5 stars0 ratingsDeveloping Web Applications with Apache, MySQL, memcached, and Perl Rating: 0 out of 5 stars0 ratingsSchematron: A language for validating XML Rating: 0 out of 5 stars0 ratingsWebGL A Complete Guide - 2021 Edition Rating: 0 out of 5 stars0 ratingsBeginning DotNetNuke Skinning and Design Rating: 0 out of 5 stars0 ratingsEmber.js in Action Rating: 0 out of 5 stars0 ratingsPHP 5 CMS Framework Development - 2nd Edition Rating: 0 out of 5 stars0 ratingsCompTIA A+ Complete Fast Pass Rating: 0 out of 5 stars0 ratingsPhpStorm Cookbook Rating: 0 out of 5 stars0 ratings
Internet & Web For You
More Porn - Faster!: 50 Tips & Tools for Faster and More Efficient Porn Browsing Rating: 3 out of 5 stars3/5Coding All-in-One For Dummies Rating: 4 out of 5 stars4/5Introduction to Internet Scams and Fraud: Credit Card Theft, Work-At-Home Scams and Lottery Scams Rating: 4 out of 5 stars4/5Coding For Dummies Rating: 5 out of 5 stars5/5Cybersecurity For Dummies Rating: 4 out of 5 stars4/5The Logo Brainstorm Book: A Comprehensive Guide for Exploring Design Directions Rating: 4 out of 5 stars4/5Beginner's Guide To Starting An Etsy Print-On-Demand Shop Rating: 0 out of 5 stars0 ratingsHow To Make Money Blogging: How I Replaced My Day-Job With My Blog and How You Can Start A Blog Today Rating: 4 out of 5 stars4/5Tor and the Dark Art of Anonymity Rating: 5 out of 5 stars5/5Grokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5Wireless Hacking 101 Rating: 4 out of 5 stars4/5The $1,000,000 Web Designer Guide: A Practical Guide for Wealth and Freedom as an Online Freelancer Rating: 5 out of 5 stars5/5Hacking : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Ethical Hacking Rating: 5 out of 5 stars5/5Social Engineering: The Science of Human Hacking Rating: 3 out of 5 stars3/5Six Figure Blogging Blueprint Rating: 5 out of 5 stars5/5200+ Ways to Protect Your Privacy: Simple Ways to Prevent Hacks and Protect Your Privacy--On and Offline Rating: 0 out of 5 stars0 ratingsThe Digital Marketing Handbook: A Step-By-Step Guide to Creating Websites That Sell Rating: 5 out of 5 stars5/5SEO For Dummies Rating: 4 out of 5 stars4/5Podcasting For Dummies Rating: 4 out of 5 stars4/5The Internet Is Not What You Think It Is: A History, a Philosophy, a Warning Rating: 4 out of 5 stars4/5Everybody Lies: Big Data, New Data, and What the Internet Can Tell Us About Who We Really Are Rating: 4 out of 5 stars4/5How To Start A Podcast Rating: 4 out of 5 stars4/5The Beginner's Affiliate Marketing Blueprint Rating: 4 out of 5 stars4/5The Cyber Attack Survival Manual: Tools for Surviving Everything from Identity Theft to the Digital Apocalypse Rating: 0 out of 5 stars0 ratingsNo Place to Hide: Edward Snowden, the NSA, and the U.S. Surveillance State Rating: 4 out of 5 stars4/5
Reviews for Instant Play Framework Starter
0 ratings0 reviews
Book preview
Instant Play Framework Starter - Daniel Dietrich
Table of Contents
Instant Play Framework Starter
Credits
About the Author
About the Reviewers
www.packtpub.com
Support files, eBooks, discount offers and more
packtlib.packtpub.com
Why Subscribe?
Free Access for Packt account holders
1. Instant Play Framework Starter
So, what is Play?
Installation
Step 1 – What do I need?
Step 2 – Downloading Play
Step 3 – Setting the PATH environment variable
Step 4 – Testing the Play installation
And that's it!
Quick start – Creating your first Play application
Step 1 – Creating a new Play application
Structure of a Play application
The app/ folder
The conf/ directory
The project/ folder
The public/ folder
The test/ folder
Step 2 – Using the Play console
Starting our application
Play console commands
Closing the console
Step 3 – Modifying our application
Fast turnaround – change your code and hit reload!
Stripped down and optimized stack traces
Step 4 – Setting up your preferred IDE
IntelliJ IDEA
Eclipse
Other IDEs
Top features you need to know about
1 – Designing a Play application
Introducing our sample application
Defining the domain model
The Java model
The Scala model
Designing the HTTP interface with the routes file
Defining the application routes
Dynamic request paths and variables
Testing the routes
Handling HTTP requests by controller actions
Providing dummy implementations
URL redirection with reverse routes
Implementing controller actions
The Java code
The Scala code
What comes next
Composing the UI from view templates
Syntax of view templates
View parameters
View imports
View expressions
Composing view templates
Example
Nesting view templates
Implementing the phone book views
Prerequisites
The index view template
The list view template
The main view template
Fine-tuning the CSS style
Providing some test data
2 – Dealing with user input
Defining a form
The server side
Binding data with a Java form
Binding data with a Scala form
The client side
Validating user input
The server side
Defining constraints in Java
Defining constraints in Scala
The client side
Using form template helpers
3 – Connecting to a database
Accessing data with Ebean for Java
Customizing the configuration
Creating the database schema
Implementing the model
Running the application
Accessing data with Anorm for Scala
Customizing the configuration
Creating the database schema
Implementing the model
Running the application
Accessing data with Slick for Scala
Customizing the configuration
Implementing the model
The data access object
The data access layer
Generating the database schema
People and places you should get to know
Official sites
Articles and tutorials
Community
Blogs
Instant Play Framework Starter
Instant Play Framework Starter
Copyright © 2013 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: May 2013
Production Reference: 1170513
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78216-290-2
www.packtpub.com
Credits
Author
Daniel Dietrich
Reviewers
Takafumi Ikeda
Jérôme Leleu
Acquisition Editor
James Jones
Commissioning Editor
Sharvari Tawde
Technical Editors
Sharvari Baet
Chirag Jani
Soumya Kanti
Project Coordinator
Suraj Bist
Proofreader
Paul Hindle
Production Coordinator
Aparna Bhagat
Cover Work
Aparna Bhagat
Cover Image
Valentina Dsilva
About the Author
Daniel Dietrich is a Senior Software Engineer living in Kiel, Germany. He studied Computer Science with Mathematics as a subsidiary subject and earned his diploma degree at the Christian-Albrechts University of Kiel. He specializes in enterprise grade frontend and backend development with a current focus on building a financial risk services platform.
Daniel has been developing software for over 25 years, thereof, 15 years professionally. He started to program at the age of 11. His creative work was influenced by computer competitions during the 90s. In the late 90s, he began to develop web applications.
Daniel worked as a Software Developer for