这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions community/learn/graphql-tutorials/manifests/caddy-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,21 @@ data:
/graphql/vue/boilerplate.zip https://storage.googleapis.com/graphql-engine-cdn.hasura.io/learn-hasura/vue-boilerplate/boilerplate.zip
}

redir 301 {
/graphql/ios/boilerplate.zip https://storage.googleapis.com/graphql-engine-cdn.hasura.io/learn-hasura/ios-boilerplate/boilerplate.zip
}

redir 301 {
/graphql/react/ /graphql/react/introduction
}

redir 301 {
/graphql/vue/ /graphql/vue/introduction
}

redir 301 {
/graphql/ios/ /graphql/ios/introduction
}

redir 301 {
/graphql/hasura/ /graphql/hasura/introduction
Expand Down Expand Up @@ -62,6 +70,8 @@ data:
proxy /graphql/react react-apollo

proxy /graphql/vue vue-apollo

proxy /graphql/ios ios-apollo

proxy /graphql hasura/v1alpha1/graphql {
without /graphql
Expand Down
46 changes: 46 additions & 0 deletions community/learn/graphql-tutorials/manifests/ios-apollo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: ios-apollo
name: ios-apollo
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: ios-apollo
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 100%
template:
metadata:
labels:
app: ios-apollo
spec:
containers:
- image: hasura/base-git-image:0.7
imagePullPolicy: IfNotPresent
name: ios-apollo
ports:
- containerPort: 8080
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
labels:
app: ios-apollo
name: ios-apollo
namespace: default
spec:
ports:
- port: 80
protocol: TCP
targetPort: 8080
selector:
app: ios-apollo
type: ClusterIP
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## Build generated
build/
DerivedData/

## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/

## Other
*.moved-aside
*.xccheckout
*.xcscmblueprint

## Obj-C/Swift specific
*.hmap
*.ipa
*.dSYM.zip
*.dSYM

## Playgrounds
timeline.xctimeline
playground.xcworkspace

# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
# Package.pins
# Package.resolved
.build/

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# Pods/

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
Carthage/Checkouts
Carthage/Build

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output

# macOS
.DS_Store

# Node.js
node_modules
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github "auth0/Auth0.swift" ~> 1.5
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
github "auth0/Auth0.swift" "1.15.0"
github "auth0/SimpleKeychain" "0.9.0"
github "daltoniam/Starscream" "3.1.0"
github "stephencelis/SQLite.swift" "0.11.6"
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# GQL Todo App

## How To Build

This project uses carthage for dependency resolution, so you would need carthage installed,

```bash
$ brew install carthage
```
or you can use pacakge installation from [Carthage Latest Release](https://github.com/Carthage/Carthage/releases)

Install dependencies with Carthage.

```bash
$ carthage update --platform iOS
```

Finally, run Xcode.
Loading