iOS App that browse the people from Star Wars Universe using GraphQL Api
Ravn-Challenge-V2–OscarCastillo-
iOS App that browse the people from Star Wars Universe using GraphQL Api.
This project uses Apollo swift Client.
https://www.apollographql.com/docs/ios/installation/
if you want a new schema you need to execute the following command
apollo schema:download –endpoint=https://swapi-graphql.netlify.app/.netlify/functions/index schema.json
To run that script you’ll need to have installed Apollo using homebrew:
brew install apollo-cli
The service requests StarWars People to the following endpoint:
https://swapi-graphql.netlify.app/.netlify/functions/index
The required queries are inside the Queries.graphql The Generated API.swift is inside the folder graphql in the root project. Schema.json is inside the folder called graphql
Installation:
This project uses cocoapods. to install the libraries, once unzip, open the terminal in folder and type:
pod install
to install all the dependencies.