A demo iOS app that uses Apollo iOS to communicate with a GraphQL server built with Vapor. This app was built as a demonstration demo for the posts "Swift ❤️ GraphQL: How to create a GraphQL server with Vapor and an iOS app as a client", "Custom GraphQL types on Swift projects" and "GraphQL mutations for iOS apps" that I published on my personal blog. You can always refer to those posts if you want to find more information about this project.
- Xcode 11
- Swift 5
- Ruby
- Bundler
To clone the repo:
git clone https://github.com/diamantidis/ios-graphql.git && cd ios-graphql
To install the dependencies
bundle install
bundle exec pod install
This app communicates with an example server, available on my vapor-graphql repo. To setup and run the server, follow the instructions on this repo. By default, the server will run on port 8080
and if you want to change it, you can change it on GraphQLClient.swift.
To run the app from Xcode:
xed .
And then hit, Command(⌘) + R.
I'm Ioannis Diamantidis and you can find me on:
This project is licensed under the terms of the MIT license. See the LICENSE file.