play

Play 2.4.X : Microservice Architecture using Play and Scala

Reading Time: < 1 minute Playing-Microservices This blog describes a basic Microservice architecture design using Play 2.4.X and Scala. The big idea behind microservices is to architect large, complex and long-lived applications as a set of cohesive services that evolve over time. The term microservices strongly suggests that the services should be small. In short, the microservice architectural style is an approach to developing a single application as a suite Continue Reading

Play 2.3.x PDF : Basic example for generating PDF documents dynamically from Play Application with the help of play2-pdf module

Reading Time: 2 minutes In this blog I have created a basic example for generating PDF documents dynamically from Play Application with the help of play2-pdf module Play 2.3.x PDF module: This module helps generating PDF documents dynamically from your Play! web application. It simply renders your HTML- and CSS-based templates to PDF. It is based on the Flying Saucer library, which in turn uses iText for PDF generation. Continue Reading

Tutorial #3: Getting started with HTTP Programming in Play Framework

Reading Time: < 1 minute We have already discussed about the Play development environment in Tutorial #1 and use of WebJars, jQuery, Bootstrap & Bootswatch with Play in Tutorial #2 So, In this blog we would discuss about HTTP programming in Play Framework which would drive us through rest of the tutorial series.  We would be running this blog as a series and we would be looking at various aspects Continue Reading

Playing JSONP : A basic example to integrate JSONP mechanism in Play Application with the help of play-jsonp-filter module

Reading Time: 3 minutes Playing JSONP Basic example to integrate JSONP mechanism in Play Application with the help of play-jsonp-filter module play-jsonp-filter This filter enables JSONP on your existing API: any resource that returns a JSON content will return a JavaScript fragment if there is an additional callback parameter in the query string. For example, if the resource /foo gives the following JSON result: {“foo”: “bar”}, the resource /foo?callback=f Continue Reading

Google reCAPTCHA: Basic example to integrate Google reCAPTCHA in Play Application with the help of play-recaptcha module

Reading Time: 2 minutes Playing with Google reCAPTCHA Basic example to integrate Google reCAPTCHA in Play Application with the help of play-recaptcha module Play reCAPTCHA Module This is a Play Framework module, for Scala and Play 2.x, to provide integration with Google reCAPTCHA (version 1 or 2) in a reactive (non-blocking) manner. Used Play reCAPTCHA module to integrate Google reCAPTCHA API Embedded JS & CSS libraries with WebJars. Integrating Continue Reading

Tutorial #2: Using WebJars, jQuery, Bootstrap & Bootswatch with Play application

Reading Time: 2 minutes We have already discussed about the Play development environment in Tutorial #1. So, In this blog we would set up the WebJars, jQuery, Bootstrap & Bootswatch with Play Framework which would drive us through rest of the tutorial series. We would be running this blog as a series and we would be looking at various aspects of play with this blog. In this tutorial we Continue Reading

Playing MultipartFormData: A basic example to handle and test MultipartFormData request in Play Framework 2.3.8

Reading Time: 2 minutes Playing MultipartFormData The following blog and attached code represent an example to upload file using MultipartFormData request and Testing it into Play Application. A basic example to handle and test MultipartFormData request in Play Framework 2.3.8 The standard way to upload files in a web application is to use a form with a special multipart/form-data encoding, which lets you mix standard form data with file attachment Continue Reading

Tutorial: Post Update on LinkedIn via Scribe using Scala

Reading Time: 3 minutes To post an Update on LinkedIn via your application, that is being built with Play 2.3.x, follow these steps ( this post summarizes the work done step by step). 1) Create a LinkedIn app (if you do not have one already) Click here – LinkedIn’s Developer Quick Start Guide and create an app. Enter all the details including Site URL. The Site URL could be something like Continue Reading

Employee-Self-Service: Reactive and Non-Blocking Database Access using Play Framework and Anorm – (Part-4)

Reading Time: 2 minutes Last week, We have added Database Access as Reactive and Non-Blocking behaviour in Employee-Self-Service  application. Now we have added some more features. These are following: Achieving, Futures to use more idiomatic error handling. Replaced the embedded JS & CSS libraries with WebJars. Achieving, table pagination and sorting functionality. Before: def list() = Action.async { implicit request => val futureEmpList = scala.concurrent.Future { Employee.list } val timeoutFuture = Promise.timeout("Oops", Continue Reading

Employee-Self-Service – Building Reactive Play application with Anorm SQL data access – (Part-2)

Reading Time: 2 minutes Last week, We have created a simple Employee-Self-Service  application using Play Framework and Anorm SQL data access , which has CRUD facility. Now we have added more features, i.e. Handling asynchronous results with time-outs facility thus application is now reactive (Async + Non-Blocking) Play and Scala-based template engine implementation. Bootswatch-Yeti with Twitter Bootstrap 3.1.1 to improve the look and feel of the application Application screens: 1. Continue Reading

Sign in with LinkedIn " functionality

Providing a Sign in with LinkedIn functionality using Scala

Reading Time: 3 minutes To integrate a Sign in with LinkedIn functionality in your social project that is being built with Play 2.2.1, follow these steps ( this post summarizes the work done step by step). 1) Create a LinkedIn app (if you do not have one already) Follow the link https://developer.linkedin.com/documents/quick-start-guide‎ and create an app. Enter all the details including Site URL . The Site URL could be something Continue Reading

Monthly Scala News Letter : December 2013

Reading Time: < 1 minute We have started our Monthly Scala News Letter from last 2 months which is delivered to subscriber’s email address on 25th of every month. If you haven’t subscribed to the newsletter yet then make it hurry and click on Subscribe Scala Monthly News Letter In the newsletter, you will find some very useful scala business news. The main aim of newsletter is that people should Continue Reading

ScalaTraits One Day Kickstart Play and Scala Event, ScalaGeek’s meetup

Reading Time: 2 minutes ScalaTraits, a Scala Users Group initiative run by Knoldus and Typesafe in the New Delhi NCR region ran its third meet-up to a huge success in central Delhi. There were 20+ Scala enthusiasts who spent the day writing Scala and Play code on their laptops and finally deployed it on Heroku. It was a fun-filled event with a superb location and excellent food (Ok, my Continue Reading