Skip to content

ertra/play-framework-by-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Play Framework by example

What is it?

I am learning Play Framework 2.9 for Java and I am creating boilerplate templates to show how to do basic stuff.

What is included?

  • Reading URL query parameters examples
  • Creating, reading and deleting Cookie
  • Creating, reading and deleting Session and protecting the resource behind the login
  • Database selects, inserts using Hibernate 6.x and JPA
  • Basic filter example
  • Full example of how to use html forms and validations, including showing form errors in UI

Other examples

How to run

  1. Download the repository and unzip it.
  2. Run the command "sbt run" from the repository directory.
  3. Open web browser http://localhost:9000

Stack used

  • Tested with Java 21
  • Play Framework 2.9
  • H2 database for database example
  • Hibernate 6.x for JPA example

Github repo

https://github.com/ertra/play-framework-by-example

Contact

Tomas Zeman: tomas.zeman via email from gmail.com