makes it very easy to build Web applications with Java, it’s Java’s answer to Rails. If you are used to the usual stack of EJB or Spring/Hibernate, Play will feel like instant joy. First of all, it just works, no more hours wasted waiting for your WAR to re-deploy, trying to get frameworks to talk to each other, it just works; it’s fun to develop Web Applications in Java again! You won’t waste any time trying to get different frameworks to talk to each other because Play comes with a modules repository and a very easy to use one-command install.
In our example today, we are going to make use of LinkedIn’s OAuth Authentication using Play 1.1.1 and Play’s LinkedIn Module (version 0.2.1) which I just released; This module comes with a sample blog app called Yabe, sample application provided by Play, which I modified to add LinkedIn’s OAuth support.
So let’s get down to business…
1) First you need to setup your environment. Make sure you have your JDK and Play installed. You can download Play 1.1.1 from here or if you are confortable with the command line:
unzip play-1.1.1.zip; mv play-1.1.1 $HOME/play-1.1.1
2) Now let’s setup the environment variables:
3) Install Play’s LinkedIn’s module:
4) Let’s get a headstart using the sample project I created based on Play’s Yabe sample application. Fork the sample project on Github, it should be under samples-and-tests/yabe.
5) Just run!
To find out more about this project, visit http://geeks.aretotally.in/projects/play-framework-linkedin-module.
And feel free to see or fork the source code on https://github.com/feliperazeek/playframework-linkedin.
* Remember to register your own API key with*LinkedIn*before going to production.*