Автор: Chris Bailey, David Okun
Издательство: Razeware LLC
Год: 2019
Страниц: 303
Язык: английский
Формат: pdf (true)
Размер: 32.1 MB
Kitura gives you the power to create production-ready RESTful APIs written in Swift.
Coupled with the power of Docker and Kubernetes, and KueryORM and KituraStencil to pull it all together, Kitura lets you take your Swift to the Server and beyond!
When Apple announced availability for the Linux build of Swift, IBM quickly pounced. Out of the box, there were major hurdles to overcome: The team worked to port most of Swift’s core APIs, like Dispatch, to compile and pass tests on Linux. In addition to this, the team visualized a module for running a RESTful server using Swift. That module is now known as Kitura.
Why Swift on the server? The core argument in favor of writing Swift for your server is to share code and knowledge between the front end and the back end of your app. And if you’re a team of one, this streamlining is arguably even more crucial and empowering. This includes, but is not limited to, your model object code.
Given that the team who wrote Kitura came from the Node.js ecosystem, there was a conscious desire to model Kitura after Express.js, which is arguably the most popular Node.js framework for running a RESTful server. There are many facets of Express to discuss, but the router is one of the most important ones. You will learn more about this later in the book. Think of a router as a module that routes requests to the appropriate place.
Скачать Server Side Swift with Kitura (2nd Edition)