Advanced Networking with URLSession

Sep 15 2022 · Swift 5.6, iOS 15, Xcode 13.4.1

Part 1: Upload Data, Background Downloads & WebSockets

02. Install Vapor

Episode complete

Play next episode

Next
About this episode

Leave a rating/review

See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 01. Introduction Next episode: 03. Upload Data

Get immediate access to this and 4,000+ other videos and books.

Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and 4,000+ professional videos in a single subscription, it's simply the best investment you can make in your development career.

Learn more Already a subscriber? Sign in.

Notes: 02. Install Vapor

Vapor

Transcript: 02. Install Vapor

Before uploading data, you need to have a destination to upload to. For this, we’ll be deploying our own server, a local server.

There are lots of different options out there. Being that we write our code in Swift, it makes sense to use a Swift server. One such server is called Vapor.

This is an open source server that is being actively developed. It provides a bunch of services out of the box.

Installing Vapor is quick and easy, as is creating new instances of it. In this demo, I’ll walk you through the process.

To install vapor, you need to install Homebrew. Homebrew is a package manager for macOS and it makes it incredibly easy to install software. To get started installing homebrew, head over to https://brew.sh.

You’ll see on the page there is a section called install homebrew. It contains a simple script.

Open up your terminal and copy and paste the script. Brew will then run through the process of installing. Your screen may look different to mine.

With homebrew installed, you now need to install the vapor framework. Type the following command:

brew install vapor

At this point, you should have vapor installed. To verify your installation, type the following:

vapor --help

And with that, you are ready to put Vapor to use in the next episode.

I’ll see ya in a bit :)