Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
OhKanghoon authored Mar 18, 2019
1 parent e7b5c19 commit 40f01ba
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,22 @@
[![License](https://img.shields.io/cocoapods/l/RxApolloClient.svg?style=flat)](https://cocoapods.org/pods/RxApolloClient)
[![Platform](https://img.shields.io/cocoapods/p/RxApolloClient.svg?style=flat)](https://cocoapods.org/pods/RxApolloClient)

## Get Started
1. Install Apollo
```sh
$ npm install -g apollo 1.9.2
```
2. Fetch Scheme & Generate API Code
#### get_gql.sh
```sh
cd ____ # project folder
apollo schema:download _______/schema.json --endpoint=__________ # scheme.json location / end point url
apollo codegen:generate --queries="$(find . -name '*.graphql')" --schema=_______/schema.json _______/GraphQLAPI.swift # scheme.json location / generated API code location
```
```sh
$ sh get_gql.sh
```

## Dependencies
- [RxSwift](https://github.com/ReactiveX/RxSwift) (~> 4.0)
- [apollo-ios](https://github.com/apollographql/apollo-ios) (~>0.9.4)
Expand Down

0 comments on commit 40f01ba

Please sign in to comment.