2. Gratitude
YOU for stopping by!!
SVCC for organizing the Camp
Guillaime Bort for Play Framework
3. Game Plan
Play Framework Primer (~ 15 min)
- Concepts
- Architecture
- Artifacts
It’s Play time (Rest of session)
- Setting up Play
- Building App Step-by-Step
4. What’s Play?
Designed by web developers for web
developers
Brings high-productivity web
development to
the JVM
Greatly enhances developer
experience (DX)
5. Full stack web
framework
Java and Scala
support
High productivity
Stateless architecture
HTTP centric
Typesafe
Asynchronous
Highly scalable
Integrated testing
6. High Productivity
Make changes and hit reload in Java
world!!
Compile-time checking
Type-safe
Console
Built-in server
Useful error reporting
7. Compile-time Checking
Checks almost all the artifacts at
compile-time
– Java/Scala code
– Templates
– Routes
– Config
– Javascript (via Google Closure)
– LESS
– Coffeescript
11. HTTP Centric
Designed around HTTP, hence
stateless
State either at client or in persistence
layer
Back button works!
Does not fight HTTP or the browser
- leverages the power of HTTP
13. Clean URL Design
URL design part of the application
design
URL is an interface – a contract not
implementation
URLs are human and machine friendly
For instance
http://localhost:9000/#/projects/3/tasks
18. Downloading & Installation
Download the binaries from
http://www.playframework.com/down
load
Latest version – 2.0.4
Unzip it to any location
Add play to path
19. Create New Project
Run the following command
$ play new coolApp
“Start” the application with
$ cd coolApp
$ play run
21. Application Configuration
Configuration properties for any
application.
Examples include database connection
info.
File located at:
<Project>/conf/application.conf
A typical entry looks like:
– db.default.driver=org.h2.Driver
29. IDE Support
Eclipse
– eclipsify
IntelliJ
– idea
Netbeans
– netbeans
ScalaIDE
30. Free Online Scala Course
by
Martin Odersky
http://www.coursera.org/course/prog
fun
32. It’s Play time
Implement a Lean Startup concept
Lean Startup Movement mandates
validating the pain point before
building any product
Step-by-step development of the
application from scratch