Walk through the implementation of a "Hello World" Kitura application. Learn about the Router class in the Kitura framework, which is responsible for performing networking operations.
- [Instructor] In order to run the project,…jump into the directory of the project and simply run…the Swift package generate Xcode…so that Xcode will recognize and add the dependencies…from the package.swift file.…After setting up the Kitura project…using Swift Package Manager we can now work towards…making a GET request using the Kitura framework.…Inside the main .swift file,…which is the starting point of your Kitura project,…we will start by importing the Kitura module.…
Kitura module contains all the different functions…and libraries that you will need…to create a network request.…Next, we will create an instance of a router class.…The router class is responsible for making network requests.…Then we have to declare a route.…Since it is a GET request, we will use…the router.get function to create our route.…
A route is simply a URL where the user will go…to execute the part of the service.…We will create the root route by using the forward slash,…which will be pointing to the root of our web API.…Router.get function provides a closure…
- Reviewing the concepts behind server-side Swift programming
- Different server-side Swift frameworks
- Setting up a Kitura project
- Adding HeliumLogger for debugging
- Accessing JSON passed parameters using Kitura.
- Reading URL parameters and URL encoded form parameters
- Configuring the PostgreSQL database
- Fetching, inserting, and deleting records from the database
- Integrating a Kitura API with an iPhone app