Starting from Play Java Starter template a minimal structure for the views and assets has been setted up so developer can create new views easily.
This seed project also includes the following libraries
- Pac4j for authentication
- Ebean ORM to handle the db. Evolutions are enabled too
and some JS to handle form submissions
Being a Play2 java project the best way to install and work with it is using the activator
Once the activator is installed and added to the path simply type
$ activator run
to run it in development mode and
$ activator test
to test it
In the views folder can be found two different templates that the user is going to extend
- Skeleton that contains only the basics assets and html
- Base that extends skeleton adding page components such as footer, side and top nav
For example a 404 page will use Skeleton while a view for a logged-in page will use Base
Feel free to run the project and browse the code for in-depth details
This project is licensed under The MIT License (MIT).