Hawaii iOS Developer Meetup – Session 47

Wow, we’re getting so close to 50 meetups! During last night’s meetup I demonstrated installing Homebrew, installing Kitura, compiling a project, running it from Xcode, and accessing localost on port 8080. Then, since Chae had asked about virtualizing the server’s environment, I showed how to install Kitura 2.0 in a Docker container.

During this meetup the set up and demonstration of Kitura was so fast we cut the feed 30 minutes into the meetup because we had already accomplished what we set out to do in 1 hour, in 30 minutes.

Once the feed was off, I asked Chae, O’Neil, Tyler, Leo, and a new developer Makua what they wanted to do for the next hour and a half remaining in the meetup. Leo mentioned that he was interested in continuing with Kitura to build a JSON endpoint. Everyone agreed to the challenge and we spent the next hour setting up a new route, testing the route with GET request variables, and finally getting the JSON endpoint in Kitura to return the current date as JSON. Here’s a link to the repo: https://github.com/Hawaii-iOS-Developer-Meetup/kituraJsonEndpoint001

We’re take a month off for the holidays. Please RSVP if you’re interested in attending the next meetup on January 11 where we will be creating a Sudoku Puzzle Solver in Swift.


Running Kitura 2.0 inside a Docker container on Mac High Sierra

This slideshow requires JavaScript.

So it’s about 10 minutes later and now I can access Kitura running inside a Docker container. The final screenshot shows Kitura running inside of a docker image that’s running from the commandline.

I followed the Kitura: Running Inside a Docker container tutorial.

Let me know if you have any questions.


Installing Kitura 2.0 on Mac High Sierra


This slideshow requires JavaScript.

I’m preparing for a talk for the next Hawaii iOS Developer meetup. Chae wrote a bunch of Swift code to run on a server. But none of us have created the environment to run it: A server that runs Swift code.

I followed the Kitura “Hello World” example.

That last screenshot shows Kitura running in Xcode in the console. Mission Accomplished. Next step, setting up Docker to run Kitura in a container.

Let me know if you have any questions about this write up.

Hawaii iOS Developer Meetup – Session 46

During this meetup, Leo showed us how he converted his objective C project into Swift. During the presentation he covered many topics – shape views, gradients, container views, page views, and singletons.

I really appreciated the pace and clarity that Leo used to teach us during the meetup. During his presentation I also learned that he uses Sketch to mock up his designs before coding them. This made sense because he’s been saying that he’s going to start working on an Augmented Reality app but needs to design it first.

As the meetup drew to a close, O’Neil raised a question about Leo’s use of singletons to share code between his View Controllers. At the conclusion of this discussion on singletons Chae explicitly stated the following,

“Singletons are for shared data. Protocols are for shared functionality.” – Chae

I love it when, through discussion and questions, we are able to stumble onto a clear and concise explanation for architecture decisions. Looking forward to more of these discussions.

We’re taking a break for Thanksgiving on the 23rd so there will be no meetup next week. We will pick back up on November 30th where we’re going to do something crazy that we’ve been talking about for a very long time – we’re going to install Swift on a linux server with Kitura.

Please RSVP if you’re interested in attending this meetup.