This course is available as part of the raywenderlich.com Professional subscription. To learn more click here

MetricKit

Pro

Feb 4 2020 · Video Course (28 mins) · Advanced

See how to utilize Apple's recently released framework MetricKit and to create a Vapor Swift backend that receives the data.

5/5 1 Rating

Version

  • Swift 5, macOS 10.14, Xcode 11

Import the MetricKit framework and start conforming to the delegate provided. Show how best to test the delegate by utilizing the Simulate MetricKit Payloads tool.

1

Print out the first MetricKit payload and go through the values exposed.

2

The results given by the delegate need to be sent to the server to see live results coming from users. In this episode, prepare for the network call that will be created later.

3

Set up a "Hello World" Vapor server app in order to create an API to send MetricKit payloads to.

4

In this episode, learn how to create your first POST API using Swift on the Server.

5

Expose the brand new API locally on your machine in order to test whether a cURL command is working as expected.

6

Learn how to send the payload to the brand new API and print out the results to the console.

7

See how to expose your localhost API to the outside world and best practices.

8

Who is this for?

This course is for Advanced iOS developers interested in mastering the all-new MetricKit and for developers interested in using Swift on the server in a production environment. It expects you to have advanced knowledge in the Swift language and the iOS eco-system. Prior experience using Vapor is advantageous.

Covered concepts

  • Import and use the MetricKit framework
  • Set up a Vapor server
  • Write a POST API using Swift

Contributors

Comments