Leave a rating/review
Notes: 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 :)