Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

besmartbeopen/play1-base

Repository files navigation

PLAY1-BASE

Play 1 project used as skeleton by Be Smart Be Open during any new Play 1 project startup.

It contains features (forms, controllers, helpers, etc) for:

  • user management (user creation, password recovery, role assignment, etc)
  • user notification
  • task management
  • security enforcement using JBoss Drools
  • comment on issue
  • italian geo data management (municipals, provinces, regions)
  • some useful play binders (Currency, LocalDate, LocalTime, Optional, DateRange, etc)

It also contains the integration with common library and tools, such as:

First setup

After you've cloned the project you have at least to:

  • create a new database for the project
  • change database name, username and password (in conf/application.conf, the db param)

You can find the application default user and password in the conf/defaults.yml file, you can change them if you want.

Then you can run:

play deps
play evolutions:apply

If you want to import your project in eclipse you can execute:

play eclipsify

Eclipse run

In order to run the project in Eclipse you should use this vmargs param:

 -javaagent:"${project_loc:play1-base}/lib/lombok-1.16.18.jar"

Don't forget to install Lombok in your eclipse installation.

Versions

Play version is 1.5.x.

See package.json to check the javascript library versions. Javascript versions could be interactively changed using:

yarn upgrade-interactive

We've used this jquery.history library:

jquery.history.js (v1.8a4) https://github.com/andreasbernhard/history.js