Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kylef-archive/Curassow
Swift HTTP server using the pre-fork worker model
https://github.com/kylef-archive/Curassow
Last synced: about 2 months ago
JSON representation
Swift HTTP server using the pre-fork worker model
- Host: GitHub
- URL: https://github.com/kylef-archive/Curassow
- Owner: kylef-archive
- License: bsd-2-clause
- Created: 2015-12-04T16:32:25.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-06-12T01:31:43.000Z (over 5 years ago)
- Last Synced: 2024-08-11T03:03:04.109Z (6 months ago)
- Language: Swift
- Homepage: https://curassow.fuller.li/
- Size: 143 KB
- Stars: 398
- Watchers: 16
- Forks: 35
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - Curassow - Swift HTTP server using the pre-fork worker model. (Server / Keychain)
- awesome-swift - Curassow - HTTP server using the pre-fork worker model. (Libs / Network)
- awesome-swift - Curassow - HTTP server using the pre-fork worker model. (Libs / Network)
- awesome-ios-star - Curassow - Swift HTTP server using the pre-fork worker model. (Server / Keychain)
- fucking-awesome-swift - Curassow - HTTP server using the pre-fork worker model. (Libs / Network)
- Awesome-Swift-Packages - Curassow - Swift HTTP server using the pre-fork worker model https://curassow.fuller.li/ (Server)
- awesome-swift - Curassow - Swift HTTP server using the pre-fork worker model ` 📝 2 years ago` (Network [🔝](#readme))
README
# Curassow
[![Build Status](https://travis-ci.org/kylef/Curassow.svg?branch=master)](https://travis-ci.org/kylef/Curassow)
Curassow is a Swift [Nest](https://github.com/nestproject/Nest)
HTTP Server. It uses the pre-fork worker model and it's similar to Python's
Gunicorn and Ruby's Unicorn.It exposes a [Nest-compatible interface](https://github.com/nestproject/Nest)
for your application, allowing you to use Curassow with any Nest compatible
web frameworks of your choice.## Documentation
Full documentation can be found on the Curassow website:
https://curassow.fuller.li## Usage
To use Curassow, you will need to install it via the Swift Package Manager,
you can add it to the list of dependencies in your `Package.swift`:```swift
import PackageDescriptionlet package = Package(
name: "HelloWorld",
dependencies: [
.Package(url: "https://github.com/kylef/Curassow.git", majorVersion: 0, minor: 6),
]
)
```Afterwards you can place your web application implementation in `Sources`
and add the runner inside `main.swift` which exposes a command line tool to
run your web application:```swift
import Curassow
import Inquilineserve { request in
return Response(.ok, contentType: "text/plain", body: "Hello World")
}
```Then build and run your application:
```shell
$ swift build --configuration release
```### Example Application
You can find a [hello world example](https://github.com/kylef/Curassow-example-helloworld) application that uses Curassow.
## License
Curassow is licensed under the BSD license. See [LICENSE](LICENSE) for more
info.