Skip to content

Commit

Permalink
Add installation instructions to Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsteinerde committed Jan 12, 2020
1 parent e2046e5 commit b16261b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,21 @@

This package ships functionality to add the [GraphiQL](https://github.com/graphql/graphiql) GraphQL web editor and request tester page to a `Router` service in Vapor.

## Installation
```
import PackageDescription
let package = Package(
dependencies: [
.package(url: "https://github.com/alexsteinerde/graphiql-vapor.git", from: "1.0.0"),
],
targets: [
.target(name: "App", dependencies: [<#T##Other Dependencies#>, "GraphiQLVapor"]),
...
]
)
```

## Example
```Swift
let router = EngineRouter.default()
Expand Down

0 comments on commit b16261b

Please sign in to comment.