Giter Site home page Giter Site logo

cupofjoey / serverless-swift-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ibm-watson-data-lab/serverless-swift-app

0.0 2.0 0.0 777 KB

Sample iOS app and serverless backend functions developed in Swift

Ruby 0.18% Swift 90.53% Objective-C 0.41% Shell 8.89%

serverless-swift-app's Introduction

Overview

This repository contains a sample iOS app developed in Swift and an app backend developed using Serverless Swift functions.

Goals

The primary goal of this project was to develop a fully featured app backend in Swift and deploy to OpenWhisk. The sample provides the ability to:

  1. Register as a new user - this demonstrates how you can use a serverless function to connect and save information to a database.
  2. Login as the newly created user - this demonstrates how you can provide authentication and authorization services in a serverless infrastructure.
  3. Retrieve the logged in user's profile - this demonstrates how you can identify a user in a stateless serverless environment without sessions or cookies.
  4. Login using a 3rd party provider - this demonstrates how you can use OAuth2 with serverless functions, in this case we login using GitHub.
  5. Retrieve the logged in user's profile from the 3rd party - this demonstrates how you can make API calls to the 3rd party authentication system to retrieve profile information.

Hello World

The best place to start is by deploying the Hello World example. This will walk you through installing the OpenWhisk CLI, deploying your first Swift function to OpenWhisk using a custom bash script (we'll explain why later), launching the sample iOS app from Xcode, and executing your Swift function.

Authentication and Authorization

Once you have deployed the Hello World example and would like to deploy and run the rest of the examples refer to the Authentication and Authorization README.

Testing

For more information on some of the challanges we faced and utilities we built to help support local development and testing refer to the Testing README.

Deployment

For more information on how we support deploying to different environments and supporting 3rd party libraries in our functions refer to the Deployment README.

serverless-swift-app's People

Contributors

markwatsonatx avatar

Watchers

James Cloos avatar Joe Hill avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.