Posts

Browse all posts.

· 5 min read

How to build macOS apps using only the Swift Package Manager?


In this article we're going to create a macOS application without ever touching an Xcode project file, but only working with SPM.

· 6 min read

Logging for beginners in Swift


Learn how to print variables to the debug console using different functions such as print, dump, NSLog and the unified os.log API.

· 6 min read

How to define strings, use escaping sequences and interpolations?


As a beginner it can be hard to understand String interpolation and escaping sequences, in this tutorial I'll teach you the basics.

· 8 min read

Swift on the Server in 2020


Why choose Swift as a backend language in 2020? What are the available frameworks to build your server? Let me guide you.

· 5 min read

10 short advices that will make you a better Vapor developer right away


As a beginner server side Swift developer you'll face many obstackles. I'll show you how to avoid the most common ones.

· 2 min read

How to store keys in env files?


In this tutorial I'll show you how to save and load secret keys as base64 encoded strings using dotenv files in Vapor 4.

· 5 min read

Table joins in Fluent 4


In this quick tutorial I'm going to show you how to join and query database models using the Fluent ORM framework in Vapor 4.

· 13 min read

Websockets for beginners using Vapor 4 and Vanilla JavaScript


Learn how to create a websocket server using Swift & Vapor. Multiplayer game development using JavaScript in the browser.

· 4 min read

Building and loading dynamic libraries at runtime in Swift


Learn how to create a plugin system using dynamic libraries and the power of Swift, aka. modular frameworks on the server-side.

· 5 min read

What's new in Swift 5.3?


Swift 5.3 is going to be an exciting new release. This post is a showcase of the latest Swift programming language features.

· 11 min read

Sign in with Apple using Vapor 4


A complete tutorial for beginners about how to implement the Sign in with Apple authentication service for your website.

· 7 min read

The Swift package manifest file


This article is a complete Swift Package Manager cheatsheet for the package manifest file, using the latest Swift 5.2 tools version.

· 8 min read

Server side Swift projects inside Docker using Vapor 4


Learn how to setup Vapor 4 projects inside a Docker container. Are you completely new to Docker? This article is just for you.

· 4 min read

Modules and hooks in Swift


Learn how to extend your application with new functionalities using a loosely coupled modular plugin system written in Swift.

· 16 min read

All about authentication in Vapor 4


Learn how to implement a user login mechanism with various auth methods using sessions, JWTs, written in Swift only.

· 10 min read

A generic CRUD solution for Vapor 4


Learn how to build a controller component that can serve models as JSON objects through a RESTful API written in Swift.

· 3 min read

The anatomy of Vapor commands


Learn how to build and run your existing Vapor apps using various command line arguments, flags and environments.

· 4 min read

How to use middlewares in Vapor 4?


Learn how to create middlewares for a Vapor based server side Swift application to handle common routing functionalities.

· 5 min read

How to write Swift scripts using the new Command API in Vapor 4?


Shell scripts are essentials on the server side. Learn how to build Swift scripts for your backend apps using property wrappers.

· 15 min read

Get started with the Fluent ORM framework in Vapor 4


Learn how to use the Fluent ORM framework. Migrations, schemas, relations powered by PostgreSQL, written in Swift.

· 2 min read

How to set up pgSQL for Fluent 4?


This is a tutorial for beginners about using PostgreSQL. I'll show you how to automatically backup and restore the database.

· 9 min read

How to create your first website using Vapor 4 and Leaf?


Let's build a web page in Swift. Learn how to use the brand new template engine of the most popular server side Swift framework.

· 12 min read

How to download files with URLSession using Combine Publishers and Subscribers?


Learn how to load a remote image into an UIImageView asynchronously using URLSessionDownloadTask and the Combine framework in Swift.

· 18 min read

Beginner's guide to Server side Swift using Vapor 4


Learn how to build and host your very first backend application using Vapor 4 and the brief history of server side Swift.