play

Hands-on CRUD operation with Scala-Play

Reading Time: 3 minutes Hi folks in this blog, we perform CRUD(Create, Read, Update, Delete) operations using Scala, Play framework, and Postgres Slick Project Setup We must install the SBT command-line tool (at least JDK 8). This Project uses SBT version 1.6.2 to install Play Framework version 2.8.1 and the Postgres database. Now you need to download the hello word template in play scala. Run ‘ sbt new playframework/play-scala-seed.g8’ 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

Introduction to the Play Framework

Reading Time: 3 minutes What Play is ? Play makes you more productive. Play is also a web framework whose HTTP interface issimple, convenient, flexible, and powerful. Most importantly, Play improves on themost popular non-Java web development languages and frameworks—PHP and Rubyon Rails—by introducing the advantages of the Java Virtual Machine (JVM). Project Structure Now, it’s time to load the project code into the IDE and look at the directory 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

Introduction To Lagom Framework

Migrating to Lagom 1.4.x?

Reading Time: 2 minutes Hi, In this blog we will discuss some of the challenges we faced while migrating lagom version from 1.3.x to 1.4.x that can be helpful if you are thinking to migrate your lagom version. But firstly we will see the versions we should have for Scala, Play and Akka. Play and Akka Versions While migrating Play and Akka version too needs to upgrade. With Lagom Continue Reading

Akka HTTP vs Other REST API Tools

Reading Time: 3 minutes Hi Folks ! Lately there have been a lot of tools that allow us to build rest APIs like the following : Akka Http Play Scalatra http4s Finch Spray In my blog today, I will be discussing Akka Http and its counterparts(competitors) in terms of their advantages, disadvantages, performance and use cases. Let us begin comparsion of Akka-Http with Scalatra. Scalatra is a thread based,it Continue Reading

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

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

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

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