Squirrel

1.0.0

Web framework in swift
Swift-Squirrel/Squirrel

What's New

Hello, World!

2018-04-06T20:07:08Z

This is first release of Swift Squirrel!

Check out documentation

CircleCI platform SPM swift

Swift Squirrel

Swift Squirrel is a simple open source web framework written in swift 4 aimed to help swift developers to create their custom APIs or web applications for Linux and Mac Os platform.

  • Open source
  • Easy to learn
  • Linux friendly
  • Fast
  • Supports MongoDB

Check out our docs page!

Installing

Add Swift Squirrel as dependency in your Package.swift

// swift-tools-version:4.0

import PackageDescription

let package = Package(
    name: "Your app",
    products: [
        // Your products
    ],
    dependencies: [
        .package(url: "https://github.com/Swift-Squirrel/Squirrel.git", from: "1.0.0"),
        // Other dependencies
    ],
    targets: [
        .target(
            name: "Your Target",
            dependencies: [..., "Squirrel"]),
    ]
)

And in source add import line

import Squirrel

Usage

The most simple usage is this Hello, World!

import Squirrel

let server = Server()

server.get("/") {
    return "Hello, World!"
}

server.run()

Documentation

For more informations check out documentation

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Authors

  • Filip Klembara - Creator - github

See also CONTRIBUTORS to list of contributors who participated in this project.

License

This project is licensed under the Apache License Version 2.0 - see the LICENSE file for details

Description

  • Swift Tools
View More Packages from this Author

Dependencies

  • None
Last updated: Sun Oct 20 2024 07:48:59 GMT-0900 (Hawaii-Aleutian Daylight Time)