A fun-side-project of mine turned out to be a CLI for Play-Framework apps based on the Groovysh.
Lets say you have a model called Team:
@Entity
public class Team extends Model {
public String name;
}
The play-shell lets you interact with your models just like in regular play code:
1. Clone the repo
git clone git://github.com/grandfatha/play-shell.git
2. Add the module-dependency to your app, e.g., add the following to your dependencies.yml file
require:
- play
- play-shell -> play-shell
repositories:
- local-modules:
type: local
artifact: <absolute-path-to-your-cloned-git-repo>/[module]
contains:
- play-shell
3. Point your Terminal to your app and run ‘play shell’
4. Have fun!
5. Type ‘exit’ to finish