Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@hsharghi
Created May 31, 2018 10:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hsharghi/5a8c0e4e06e85f73ff5a0df8c4d79b9e to your computer and use it in GitHub Desktop.
Save hsharghi/5a8c0e4e06e85f73ff5a0df8c4d79b9e to your computer and use it in GitHub Desktop.
Blog API using Vapor 3
// swift-tools-version:4.0
import PackageDescription
let package = Package(
name: "blog",
dependencies: [
// 💧 A server-side Swift web framework.
.package(url: "https://github.com/vapor/vapor.git", from: "3.0.0"),
// 🔵 Swift ORM (queries, models, relations, etc) built on MySQL.
.package(url: "https://github.com/vapor/fluent-mysql.git", from: "3.0.0-rc"),
.package(url: "https://github.com/vapor/auth.git", from: "2.0.0-rc.4.1"),
.package(url: "https://github.com/vapor/jwt.git", from: "3.0.0-rc.2.1")
],
targets: [
// .target(name: "App", dependencies: ["FluentSQLite", "Vapor"]),
.target(name: "App", dependencies: ["FluentMySQL", "Vapor", "Authentication", "JWT"]),
.target(name: "Run", dependencies: ["App"]),
.testTarget(name: "AppTests", dependencies: ["App"])
]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment