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!
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
The most simple usage is this Hello, World!
import Squirrel
let server = Server()
server.get("/") {
return "Hello, World!"
}
server.run()
For more informations check out documentation
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
- Filip Klembara - Creator - github
See also CONTRIBUTORS to list of contributors who participated in this project.
This project is licensed under the Apache License Version 2.0 - see the LICENSE file for details