We’re giving away 1,500 more DJI Tello drones. Enter to win ›
Get the code
Watch the video
by Manuel Silveyra | Updated May 16, 2018 - Published March 13, 2017
IoTMobile developmentPlatform as a ServiceServerlessSwift
Archived date: 2019-05-21
BluePic is a photo and image sharing sample application that allows you to take photos and share them with other BluePic users. This sample application demonstrates how to leverage, in a mobile iOS application, a Kitura-based server application written in Swift.
BluePic takes advantage of Swift in a typical iOS client setting, but also on the server-side using the new Swift web framework and HTTP Server, Kitura. An interesting feature of Bluepic is the way it handles photos on the server. When an image is posted, its data is recorded in Cloudant and the image binary is stored in Object Storage. From there, an IBM Cloud Functions sequence is invoked causing weather data like temperature and current condition (e.g. sunny, cloudy, etc.) to be calculated based on the location an image was uploaded from. AlchemyAPI is also used in the IBM Cloud Functions sequence to analyze the image and extract text tags based on the content of the image. A push notification is finally sent to the user, informing them their image has been processed and now includes weather and tag data.
Ready to put this code pattern to use? Complete details on how to get started running and using this application are in the README.
April 17, 2019
Back to top