Server Side Swift with Kitura Part 2: Completing Your Backend

David Okun

Part two of our new, free course, Server Side Swift with Kitura, is available today! If you ever wanted to extend your skills past developing for mobile devices, but didn’t have time to learn a new language, this is your chance!

In part two, you’ll get an introduction to Kitura version 2.0, and learn to connect your Kitura server to CouchDB to store your EmojiJournal entries.

Take a look at what’s inside:

Part 2: Completing Your Backend

  1. Introduction To Kitura 2.0: We’ll cover the basics introduced in Kitura 1.0, and then go into some of the finer points of what was added to the Kitura framework in version 2.0, including what a router is and how codable routes work.
  2. Making Codable Routes: Let’s make a basic GET route using Kitura, and then let’s enhance and streamline that route using the Codable protocol with Kitura’s best built in feature – Codable Routing.
  3. Challenge: Create A DELETE Route: Now that you’ve made two routes in Kitura, you’ll make your third one to improve on its functionality.
  4. Introduction To CouchDB: I’ll show you how CouchDB works, and how you’ll make use of it to store journal entries that you enter with EmojiJournal.
  5. Connecting To CouchDB: I’ll walk you through setting up CouchDB on your local machine, and how to connect your Kitura server to it.
  6. Challenge: Using CouchDB In The Cloud: After I show you how to set up an instance of CouchDB in IBM Cloud, I’ll challenge you to connect to it once you have all the information you need to do so.
  7. Writing Your Persistence Functions: I’ll walk you through writing a series of persistence functions in your Kitura application, so that you have an easy way to keep track of how your app uses CouchDB.
  8. Challenge: Linking Your Router To CouchDB: After you write your persistence functions, you’ll hook up your codable routes to your database, finally putting all the pieces together.
  9. Conclusion: Take a second to smell the roses, and look at what you built! I’ll run you through a test drive of your Kitura application.

Where To Go From Here?

Want to check out the course? The first two parts of the course are ready for you today! The rest of the course will be released over the next two weeks, and the entire course will be available for free.

Stay tuned for more new and updated courses to come. I hope you enjoy the course! :]

David Okun

David Okun is a Developer Advocate for IBM, focusing on Swift in the cloud and other API oriented practices. He is one of the co-organizers of the Swift Cloud Workshop, a free conference which invites people to discuss uses for Swift in the cloud and everywhere other than iOS. He is also passionate about open source iOS work with AVFoundation.

Other Items of Interest

Save time.
Learn more with our video courses. Weekly

Sign up to receive the latest tutorials from each week, and receive a free epic-length tutorial as a bonus!

Advertise with Us!

PragmaConf 2016 Come check out Alt U

Our Books

Our Team

Video Team

... 27 total!

iOS Team

... 83 total!

Android Team

... 47 total!

Unity Team

... 16 total!

Articles Team

... 4 total!

Resident Authors Team

... 32 total!

Podcast Team

... 4 total!

Recruitment Team

... 8 total!

Illustration Team

... 4 total!