Skip to content

Commit

Permalink
Add installation guide to the README (#210)
Browse files Browse the repository at this point in the history
* Add installation guide to the README

* add /

---------

Co-authored-by: Tim Condon <0xTim@users.noreply.github.com>
  • Loading branch information
MahdiBM and 0xTim authored Nov 3, 2024
1 parent cde5b8b commit 087031e
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -408,3 +408,28 @@ let keyCollection = await JWTKeyCollection().add(
serializer: serializer
)
```

## Installation

Run the following commands on your package using SwiftPM, replacing `MyTarget` with the name of your target:

```swift
cd /path/to/project/root/directory
swift package add-dependency https://github.com/vapor/jwt-kit.git --from 5.0.0
swift package add-target-dependency JWTKit MyTarget
```

Or manually add the following to your `Package.swift` file:

```swift
dependencies: [
.package(url: "https://github.com/vapor/jwt-kit.git", from: "5.0.0")
],
targets: [
.target(
name: "MyTarget",
dependencies: [
.target(name: "JWTKit"),
]),
]
```

0 comments on commit 087031e

Please sign in to comment.