Giter Site home page Giter Site logo

Curassow

Build Status

Curassow is a Swift 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 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:

import PackageDescription

let 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:

import Curassow
import Inquiline


serve { request in
  return Response(.ok, contentType: "text/plain", body: "Hello World")
}

Then build and run your application:

$ swift build --configuration release

Example Application

You can find a hello world example application that uses Curassow.

License

Curassow is licensed under the BSD license. See LICENSE for more info.

Kyle Fuller's Projects

ale icon ale

Asynchronous Lint Engine

apiblueprint.vim icon apiblueprint.vim

This vim plugin brings syntax highlighting and linting for API Blueprint.

bluemicro_ble icon bluemicro_ble

Keyboard Firmware for the Nordic nRF52 Series of Bluetooth SoC based on the Adafruit NRF52 Feather

changelog icon changelog

A formal specification for changelog files and entries

chunkwm icon chunkwm

Tiling window manager for macOS based on plugin architecture

commander icon commander

Compose beautiful command line interfaces in Swift

go-proxyproto icon go-proxyproto

A Go library implementation of the PROXY protocol, versions 1 and 2.

goji icon goji

Command line JIRA client

irctk icon irctk

A Python IRC client library

ircv3-specifications icon ircv3-specifications

IRCv3 specifications | Roadmap: https://git.io/IRCv3-Roadmap | Code of conduct: http://ircv3.net/conduct.html

ledger icon ledger

Double-entry accounting system with a command-line reporting interface

life icon life

This repository is used as a personal issue tracker

maintain icon maintain

A unified interface to maintaining projects of any language.

mfpageflowview icon mfpageflowview

A paging flow view, similar to the scrollable iOS App Store screenshots.

mockingjay icon mockingjay

An elegant library for stubbing HTTP requests with ease in Swift

node icon node

Node.js JavaScript runtime :sparkles::turtle::rocket::sparkles:

oragono icon oragono

A modern IRC server (daemon/ircd) written in Go.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.