Kitura is a new package based web framework for Swift 3.0 by IBM. As Swift is a compiled language, your Kitura application compiles to a binary that can either act as its own webserver (by default, on port 8090) or as a FastGCI server for use with Nginx or Apache. Features URL routing (GET, POST, PUT, DELETE) URL parameters Static file serving FastCGI support SSL/TLS support JSON parsing Pluggable middleware Starting first project To create executable package, create and switch to a directory. For example I have created a directory with name ‘ Todoapp ’ and moved in. Now in the terminal, $ swift package init will create folder structure for Kitura as shown Todoapp ├── Package.swift ├── Sources │ └── main.swift └── Tests Tip : In case swift file ~/Sources/Todoapp.swift created then rename to ~/Sources/main.swift. In the Package.swift add ‘dependencies’. /***** Package.swift ******/ import PackageDescription let package = Package( nam
Mobile App Developer | Technopreneur