https://github.com/vapor-community/kitura-provider
Use IBM's Kitura HTTP server in your Vapor application.
https://github.com/vapor-community/kitura-provider
Last synced: 7 months ago
JSON representation
Use IBM's Kitura HTTP server in your Vapor application.
- Host: GitHub
- URL: https://github.com/vapor-community/kitura-provider
- Owner: vapor-community
- License: mit
- Created: 2016-10-14T17:29:07.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-22T16:43:00.000Z (over 8 years ago)
- Last Synced: 2025-04-29T09:57:24.784Z (7 months ago)
- Language: Swift
- Size: 14.6 KB
- Stars: 7
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Kitura Provider

[](https://travis-ci.org/vapor/kitura-provider)
[](https://circleci.com/gh/vapor/kitura-provider)
[](https://codecov.io/gh/vapor/kitura-provider)
[](https://codebeat.co/projects/github-com-vapor-kitura-provider)
[](http://vapor.team)
The Kitura provider for Vapor allows you to use IBM's Kitura HTTP server in your [Vapor](https://github.com/vapor/vapor) application.
## 🚀 Setup
Add the `kitura-provider` package to your `Package.swift`.
```swift
import PackageDescription
let package = Package(
name: "VaporApp",
dependencies: [
.Package(url: "https://github.com/vapor/vapor.git", majorVersion: 1, minor: 1),
.Package(url: "https://github.com/vapor/kitura-provider.git", majorVersion: 1, minor: 0),
]
)
```
> Note: This package requires Vapor 1.1 or later.
### Provider
Once the package is added, you can add the provider to your Droplet.
```swift
import Vapor
import VaporKitura
let drop = Droplet()
try drop.addProvider(VaporKitura.Provider.self)
```
The provider adds a configurable server called `"kitura"`. To use the server, edit your `Config/droplet.json` file.
```json
{
"server": "kitura"
}
```
### Manual
If you are not using configuration files, or you would like to hard-code the Kitura server to your Droplet, you can set the server directly.
```swift
import Vapor
import VaporKitura
let drop = Droplet()
drop.server = KituraServer.self
```
## 📖 Documentation
Visit the Vapor web framework's [documentation](http://docs.vapor.codes) for more instructions on how to use this package.
## 💧 Community
Join the welcoming community of fellow Vapor developers in [slack](http://vapor.team).
## 🔧 Compatibility
This package has been tested on macOS and Ubuntu.