App Store Connect API – Vapor Web App Example

This is an example web app built using vapor that lets users register their devices to your provisioning profile.

How to Run

Mac OS

You need to have Xcode installed. The example was made in 13.2.1

In the root folder open package.swift

note: upon first start resolving the spm packages will take a significant amount of time

In Sources/App/routes.swift add your credentials on the top. See how to get an API key

Press run in Xcode

After the server launches visit localhost:8080 in your browser.

Dockerized (in swift:5.5-focal)

You need to have docker installed

In the root folder

Build: docker compose build

Run: docker compose up app

visit localhost:8080 in your browser


View Github