Learn how KituraKit makes client-side connections to Kitura straightforward, and how it can drastically reduce the amount of code for networking on your client.
Download the Course Files:
[ Ссылка ]
Watch the full course:
[ Ссылка ]
---
About www.raywenderlich.com:
raywenderlich.com is a website focused on developing high quality programming tutorials. Our goal is to take the coolest and most challenging topics and make them easy for everyone to learn – so we can all make amazing apps.
We are also focused on developing a strong community. Our goal is to help each other reach our dreams through friendship and cooperation. As you can see below, a bunch of us have joined forces to make this happen: authors, editors, subject matter experts, app reviewers, and most importantly our amazing readers!
---
From raywenderlich.com:
IBM created Kitura as an open-source framework in 2015, shortly after Apple open-sourced Swift. They modeled Kitura after Express.js, the de-facto framework for creating RESTful APIs using Node.js.
REST is an acronym for Representational State Transfer. In RESTful apps, each unique URL represents an object. Non-unique URLs represent actions, which are combined with RESTful verbs like GET to fetch objects, POST to insert, DELETE to remove and PUT to update objects.
Backend development often involves many components working together. You’ll only be concerned with two backend components in this Kitura tutorial: the API and database.
For example, if you want to populate a table view with a list of acronyms and their meanings, your client app sends a GET request to the backend. In practice, your app requests the URL [ Ссылка ].
The API receives your request and uses a router to decide how to handle it. The router checks all available routes, which are simply publicly accessible endpoints, to determine if there is a GET route ending in /acronyms. If it finds one, it executes the associated route’s code.
The /acronyms route then does the following:
- Retrieves the acronyms from the database
- Serializes them into JSON
- Packages them into a response
- Returns the response to the API to send to the client
From Wikipedia
Kitura is a free and open-source web framework written in Swift, developed by IBM and licensed under Apache 2.0.[2][3][4] It’s an HTTP server and web framework for writing Swift server applications.
Ещё видео!