Create Your Own Backend for Swift using Charles

Create a music favourites section with a temporary backend

Steven Curtis
4 min readMar 15, 2021

Photo by Raphael Lovaski on Unsplash

Difficulty: Beginner | Easy | Normal | Challenging
This article has been developed using Xcode 12.0, and Swift 5.3

This article has a supporting video at the following link:

https://youtu.be/q3CiYzJlJkk

Prerequisites:

  • You will be expected to be aware how to make a Single View Application
  • Setting up Charles is covered here, but for more detail take a look at my Charles article
  • I’ve imported SDWebImage using Pods, you may need to install CocoaPods with sudo gem install cocoapods and then perform a pod install from inside the downloaded directory from the repo, if you decide to download my version of this code (I didn't include the Pods in the upload).

Terminology

Charles: A HTTP proxy for development

The Motivation

At work we might be expected to demo either internally or to a specific client. What if you don’t yet have a backend to support your shiny new feature? Mocking your responses in this case…

--

--