Using Application Metrics for Swift in Xcode

Early releases of Application Metrics for Swift (SwiftMetrics) were difficult to get working for Xcode developers due to the use of dynamic libraries as plugins and the fact that SwiftMetrics previously expected them to be all in the same folder in a specified location. As a workaround it was possible to build SwiftMetrics outside of…  Continue reading Using Application Metrics for Swift in Xcode

Understanding the Application Metrics for Swift dashboard

Application Metrics for Swift contains a web-based dashboard showing a range of metrics including HTTP requests, CPU and memory usage. Installation Adding monitoring to your application is very straightforward in most cases, requiring just a few lines added to your main Swift source file. See the Quick Start Guide for details. After starting your application…  Continue reading Understanding the Application Metrics for Swift dashboard
Kitura/iOS

Kitura/iOS: Running a Web Server on your iPhone

Server-side Swift applications, and Kitura applications in particular, can run on macOS and Ubuntu Linux. There are use cases, however, that require running server-side applications on iOS. To run a server-side application on iOS means embedding its code in a plain client-side iOS app. In this blog post, I will describe these use cases and…  Continue reading Kitura/iOS: Running a Web Server on your iPhone

Working with WebSockets in a Kitura based server

Historically Web Servers respond to requests sent to them using HTTP. These requests are sent over a TCP/IP socket. The response to one of these HTTP requests is sent back to the client using the same TCP/IP socket on which the request was sent. Fundamentally HTTP enables the client to send requests to the server…  Continue reading Working with WebSockets in a Kitura based server

Securing Kitura Part 3: Challenges on Cross-Platform SSL/TLS

Having a consistent development experience for Swift across iOS, tvOS, macOS and now Linux helps to drive higher developer productivity as well as better reuse of Swift assets/libraries across these platforms. The challenge then is to design and maintain consistent Swift APIs across these platforms while leveraging libraries and capabilities that might be specific to…  Continue reading Securing Kitura Part 3: Challenges on Cross-Platform SSL/TLS

Serving content written in Markdown using Kitura

Web applications serve HTML content. Much of this content makes up the various pages of the application. Such HTML is either hand written by developers or generated from templates, often in templating languages designed for developers. This HTML content if most often is much more about laying out other content than actual text in the…  Continue reading Serving content written in Markdown using Kitura

Getting Started with Kitura and AngularJS

Introduction Kitura is an open source web framework provided by IBM that is created for building microservices written in Swift. Kitura is a great way to leverage Swift knowledge to develop both client and server sides of your project. This presents the opportunity for a frontend Swift developer to become a full-stack developer by eliminating…  Continue reading Getting Started with Kitura and AngularJS

Transition to Server-Side Swift with BluePic

In order to demonstrate the possibilities a developer has using open source Swift, IBM built the open sourced demo application known as BluePic. This article will provide you with an overview of the technologies BluePic uses and how it leverages server-side Swift. BluePic is a photo sharing application for viewing, posting, and searching for images posted by others. This application takes advantage of Swift in a typical iOS client setting, but also on the server-side using the new Swift web framework and HTTP Server, Kitura.  Continue reading Transition to Server-Side Swift with BluePic

Securing Kitura Part 2: Basic Authentication

In this blog series, we explore how a developer can secure a Swift server application using Kitura web framework. Kitura-Credentials is the middleware which Kitura applications can leverage to integrate authentication with a protected resource or API. In this post, I will describe basic and digest authentication schemes, how they should be used and write…  Continue reading Securing Kitura Part 2: Basic Authentication