Play

Introduction to play framework

Reading Time: 3 minutes In this blog we will discuss about the basics of the play framework. So let’s start with the introduction of the play framework. What is Play framework? Play is a lightweight open source framework develop by the Lightbend. Companies such as LinkedIn, Coursera, Verizon and many more already work with Play. So basically it is a web framework for the JVM that breaks away from Continue Reading

Build REST API in Scala with Play Framework

Reading Time: 4 minutes Overview In earlier blogs I discussed about play framework now lets we move to further topics on play. For building simple, CRUD-style REST APIs in Scala, the Play Framework is a good solution. It has an uncomplicated API that doesn’t require us to write too much code. In this blog, we’re going to build a REST API in Scala with Play. We’ll use JSON as Continue Reading

Serialization in Lagom

Reading Time: 2 minutes In my previous blogs on Lagom, we discussed Persistent Entity and Read-side and Write side in Lagom. In this blog, I’m going to discuss how serialization is handled in Lagom. But before that let’s understand what serialization is ? Serialization is a process of converting an object into the stream of bytes so that you can store or transmit it in memory, database etc. Its Continue Reading

Practical Guide: Anorm using MySQL with Scala

Reading Time: 3 minutes  In this blog, we are going to explore the Anorm. Play includes a simple data access layer called Anorms that uses plain SQL to interact with the database and provides an API to parse and transform the resulting datasets. In this blog, we will be using MySQL as our database.  You need to perform the following steps to utilize Anorm: 1)To start with anorm, you Continue Reading

Kick-start to a Play Framework

Reading Time: 3 minutes Hello everyone, welcome to my blog 🙂In this blog we’ll get familiar with some basic concepts of play framework. Play is a full-stack framework with all of the components you need to build a Web Application or a REST service, including: an integrated HTTP server, form handling, Cross-Site Request Forgery (CSRF) protection, a powerful routing mechanism, I18n support, and many more. Why Play? Its Model-View-Controller Continue Reading

Response size compression in Lagom: GZip Encoding

Reading Time: 2 minutes This is a small blog post, in which we will go through the steps to add response compression in our Java-based Lagom service. If you are not familiar with the concepts of Lagom, read through this blog to gain a brief idea of what Lagom is all about. Then, come back here and we will add quickly add compression to the service you’d have implemented. Continue Reading

Lagom

Lagom 1.4: What’s new?

Reading Time: 7 minutes Lagom is a reactive microservice framework, which is increasingly becoming the go-to solution for building a microservice-based architecture for industry-wide services. In case you still haven’t heard of it, this blog post will not only familiarize you with the idea behind Lagom but will also walk you through some history of Lagom since its 1.0 launch, what’s new in the latest stable release, and some 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

Integrate JWT with Akka HTTP

Reading Time: 3 minutes In this article we will discuss about , how to implement  authentication or authorization in Akka HTTP routes using JWT . As we know Akka HTTP is full implementation of  server  and client side HTTP stack on top Akka actor and Akka stream . Now Let’s  we  talk about JWT. what is JWT ? JSON Web Token (JWT) is an open standard (RFC 7519) that defines Continue Reading

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