Play Framework

Web Designing using Pure.css

Reading Time: 5 minutes In today’s blog I will be introducing Pure.css (simply referred to as “Pure”), it’s use case and advantages over its counterparts. The blog will get you acquainted with the basics of the Pure. I shall discuss the basic idea behind its inception and what are its different components and finally how to integrate and implement it in web projects. What is Pure.css? Pure.css a set Continue Reading

JWT Authentication with Play Framework

Reading Time: 3 minutes In this blog, I will demonstrate how to implement JWT Authentication with Play Framework. JSON Web Token (JWT) is a compact, self-contained which means securely transfer the information between two parties. It can be sent via Post request or inside the HTTP header. This information can be verified and trusted because it is digitally signed. JWTs can be signed using a secret or a public/private key Continue Reading

Introduction to Swagger

Reading Time: < 1 minute Hello all, Knoldus organised a knolx session on the topic “Introduction to Swagger” on Friday, 28 October 2016. Swagger is a simple yet powerful representation of your RESTful API. With the largest ecosystem of API tooling on the planet, thousands of developers are supporting Swagger in almost every modern programming language and deployment environment.It specifies the format (URL, method, and representation) to describe REST web Continue Reading

Gatling Integration with Play

Reading Time: 2 minutes I have started working on a project which require stress testing using Gatling. I Setup the sbt project on which gatling is working fine. But when I try to integrate it using play framework, it doesn’t work. The project structure for both are different so it doesn’t work for both the project in the same manner. Your build.sbt should be  like this: import _root_.io.gatling.sbt.GatlingPlugin import Continue Reading

Knolx: Effective way to code in Scala

Reading Time: < 1 minute In this presentation, we are going to discuss about how to write  effective code in  Scala and also talk about Scala ExecutionContext and how create own  ExecutionContext.     Below is the Youtube video of the this session.  

Introduction to Knockout js with Play template

Reading Time: 2 minutes Knockout is a JavaScript library that is based on Model–view–viewmodel (MVVM) that helps to build responsive UI display. This makes a clear separation between the model(Domain model/ stored data), view(User Interface) and view-model(presentation of the model in which binder communicates between view and data-binder). Why Knockout js? 1. Declarative bindings: This is a convenient way to bind the Html to the data model. When we Continue Reading

Play2 Pdf Plugin: JS enabled and disabled browser

Reading Time: 2 minutes In this post I’m going to talk about generating PDF documents in Play web application with the help of “play2-pdf plugin”. Firstly, I want to focus on the criteria that we consider or investigate while generating PDF in our projects: Is it server side or client side pdf generation as client side generation doesn’t work for JavaScript disabled browser. Whether its on the fly or Continue Reading

Integration Test Configuration in Play Framework

Reading Time: < 1 minute A few days ago I’ve come across a problem while writing integration testing of my play application. My need was like to run unit and Integration test separately, in a normal sbt project, it’s easy to configure it, but I couldn’t find proper documentation about how to do this in play application, because there are difference in the folder structure in both of them. The reason why I wanted Continue Reading

Multipart/form-data submit through javascript in Play Framework

Reading Time: 2 minutes Normally when we submit any multi-part form in Play Framework that time in the controller have to mention redirection action which  refresh the whole page and it gives an extra load on the network. It is possible to submit that form with the help of Ajax. It makes easy to submit your form and help to refresh only that particular section where you want to Continue Reading

Messages and internationalization in Play 2.4.x

Reading Time: 3 minutes In this blog we would discuss about Messages and internationalization in Play Framework which would drive us through the implementation and testing of the Play MessagesAPI. Messages and internationalization Play supports Internationalization (i18n) out of the box by leveraging the underlying internationalization support. With Play you are able to customize the text that appears in a view based on the user’s Locale. Specifying languages supported Continue Reading

Getting started with ReactJS, Play 2.4.x, Scala, Anorm and WebJars

Reading Time: 2 minutes playing-reactjs This blog describes a basic example to render UI using React(A JavaScript library for building user interfaces) with Play 2.4.x, Scala, Anorm and WebJars. It also demonstrates the use of evolution in Play 2.4.x This is a classic CRUD application, backed by a JDBC database. It demonstrates: Handling asynchronous results, Handling time-outs Achieving, Futures to use more idiomatic error handling. Accessing a JDBC database, Continue Reading

Swagger With Play2

Reading Time: 5 minutes What is Swagger : Swagger is very powerful tool for REST API description and API documentation.Swagger API gives a Swagger GUI for humans to learn and test your API.It’s 100% open source.The goal of Swagger is to enable client and documentation systems to update at the same pace as the server. The documentation of methods, parameters, and models are tightly integrated into the server code, Continue Reading