swift-squirrel/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.
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 SquirrelUsage
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
- 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
License
This project is licensed under the Apache License Version 2.0 - see the LICENSE file for details
Package Metadata
Repository: swift-squirrel/squirrel
Default branch: master
README: README.md