scala.js

Introduction to Scala.js

Reading Time: 4 minutes A safer way to build robust front-end web applications! http://www.scala-js.org/ In this blog, we are gonna utilizing a whole lot of features of Scala to build a simple front-end application using Scala.js. So, let’s get it started- Step-1: – Creating an sbt project Create a folder named scala-js-example and inside it create a build.sbt. build.sbt Now, create a new folder named as a project inside Continue Reading

A Pure Scala Front-End application using Scala.js and ScalaCSS

Reading Time: 2 minutes In my previous posts, I created an application ‘Weather Report‘, based on Scala.js and explained how to write test-case in Scala.js using same application.  Earlier I was creating html page using Scala.Js Jquery library.  But code was not very clean and well structured. I started exploring ScalaTags and ScalaCSS to make application more interactive and clean using Scala.js. ScalaTags is HTML construction library for Scala Continue Reading

How to write test-case for Scala.js application

Reading Time: < 1 minute Few months ago, I created a web application ‘Weather Report‘, based on Scala.js.  In this blog, I have explained how we can test our Scala.js application. Since I am still exploring it, so I took help from scalajs-tutorial.  I have used µTest as testing library. // uTest settings libraryDependencies += “com.lihaoyi” %%% “utest” % “0.3.0” % “test” testFrameworks += new TestFramework(“utest.runner.Framework”) Here is example of test-cases: def tests = Continue Reading

Why Scala.js is preferred language for front-end development

Reading Time: 4 minutes From last few years, I have been working on Scala as a back-end and Javascript as front-end for web application.  It becomes very painful, when I have to refactor a large Javascript code base, written by someone else. There are also many annoying language warts. I tried to use other front-end framework, targeting JS but wanted to use same platform to go all the way Continue Reading

Easiest Way to Implement Google Map in Scala.js

Reading Time: < 1 minute In this blog, I would explain how to implement Google Map in scala .js. If you are developing your web application in Scala and you want to write javascript functionality in Scala then you should go with scala.js. To implement Google Map in scala.js, please follow below steps:- 1) Add below code in your HTML file <script src=”https://maps.googleapis.com/maps/api/js”></script&gt; <div id=”map_canvas” style=”height: 430px; width: 512px;”> 2) Continue Reading

Scala’s evolving ecosystem – Introduction to Scala.js

Reading Time: < 1 minute In this MeetUp, We introduced Scala.js as Scala’s evolving ecosystem. Scala.js- A scala to JavaScript compiler. If We are developing any web application in Scala, we don’t need to sacrifice javascript interoperability. Scala's evolving ecosystem- Introduction to Scala.js from Knoldus Software LLP