/ios-graphql

A demo iOS app that uses Apollo iOS to communicate with a GraphQL server built with Vapor

Primary LanguageSwiftMIT LicenseMIT

iOS GraphQL app

Swift License Twitter: @diamantidis_io

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.

Requirements

  • Xcode 11
  • Swift 5
  • Ruby
  • Bundler

Installation

To clone the repo:

git clone https://github.com/diamantidis/ios-graphql.git && cd ios-graphql

Dependencies

To install the dependencies

bundle install
bundle exec pod install

Server

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.

Running the app

To run the app from Xcode:

xed .

And then hit, Command(⌘) + R.

Author

I'm Ioannis Diamantidis and you can find me on:

License

This project is licensed under the terms of the MIT license. See the LICENSE file.