Real-Time Communication: Implementing Websockets With Spring Boot

Thomas Kendall Java, JavaScript, Technology Snapshot Leave a Comment

When developing web applications, we sometimes need to push server events down to connected clients. However, HTTP was not designed to allow this. To get around this limitation, a polling pattern was established where web pages would intermittently poll the server for any new events. This pattern was not ideal as it added HTTP overhead, was only as fast as the polling rate, and caused unnecessary load on the server.

Luckily, with the emergence of HTML5 came the WebSocket. The WebSocket protocol enables interaction between a browser and a web server with lower overheads. In this blog we’ll introduce the Websockets API and show how to implement Websockets with Spring Boot.



A Test-Driven Development Introduction to Angular 2 – Part 2

Matthew Brown AngularJS, JavaScript, Single-Page Application, Technology Snapshot, Testing 5 Comments

In this updated blog post, we’ve built an employee directory using Angular 2 with unit tests, gone over some differences between Angular 2 and version 1, and introduced some of the features of TypeScript.

I originally wrote this article/application when Angular 2 was still in beta. Now that it has released officially, I have updated the source code to reflect updates made to the Angular 2 framework for release. My approach to get this working was to start from the new Angular 2 quick-start project, port in the original application source code, and refactor as needed to make things work. Let’s get started…



Learning Event Scheduled: Angular 2 In Action

Lauren Fournier AngularJS, Community, Company News, JavaScript Leave a Comment

We are excited to announce the next free public Keyhole Software educational event: Angular 2 In Action! This Breakfast Boost event is a live-coding learning opportunity open to the public. The presentation is geared to benefit software developers who are implementing or interested in AngularJS.

This free presentation will be held at the Keyhole Software office in Leawood, Kansas on Thursday, February 16, 2017 from 8-10 a.m. Space is limited. To get more information and reserve your free tickets…



Quick Start: End-to-End Testing With Protractor

Todd Horn AngularJS, JavaScript, Technology Snapshot, Testing, Tutorial Leave a Comment

As AngularJS applications become more complex, manual testing becomes unreliable and repetitive. Unit Testing is a great start for testing the code, but eventually End-to-End testing is needed for better coverage.

A great tool to use for this is Protractor, an end-to-end test framework for AngularJS applications. In this blog, we’ll briefly introduce the benefits of Protractor and give you the steps needed to get started with the tool.



Handlebars – A More Dynamic Way

Dagin Fullmer JavaScript, Single-Page Application, Technology Snapshot, Tutorial Leave a Comment

Handlebars.js is a popular templating engine based on the Mustache template language. In this blog, we will explore how Handlebars is a dynamic template creation tool and what benefits logic-less templates afford us. During our discussion we will cover Handlebars’ precompiling, partials, and helpers, and how each supports or contradicts dynamic and logic-less templates…