Sample code for [https://www.theguardian.com/info/developer-blog/2015/dec/30/how-to-add-a-form-to-a-play-application].
I recommend you read through the code one commit at a time, starting at the oldest.
Start the Play app:
$ ./activator run
And open http://localhost:9000/widgets