All Projects → aws-samples → aws-mobile-appsync-events-starter-ios

aws-samples / aws-mobile-appsync-events-starter-ios

Licence: MIT-0 license
GraphQL starter application with Realtime and Offline functionality using AWS AppSync

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to aws-mobile-appsync-events-starter-ios

Aws Mobile Appsync Events Starter React Native
GraphQL starter application with Realtime and Offline functionality using AWS AppSync
Stars: ✭ 134 (+35.35%)
Mutual labels:  real-time, offline, realtime, appsync
Aws Mobile Appsync Events Starter React
GraphQL starter application with Realtime and Offline functionality using AWS AppSync
Stars: ✭ 337 (+240.4%)
Mutual labels:  real-time, offline, realtime, appsync
Aws Mobile Appsync Chat Starter Angular
GraphQL starter progressive web application (PWA) with Realtime and Offline functionality using AWS AppSync
Stars: ✭ 449 (+353.54%)
Mutual labels:  real-time, offline, appsync
Rekord
A javascript REST ORM that is offline and real-time capable
Stars: ✭ 171 (+72.73%)
Mutual labels:  real-time, offline
Kepler
The open source full-stack geosocial network platform
Stars: ✭ 125 (+26.26%)
Mutual labels:  real-time, realtime
Dop
JavaScript implementation for Distributed Object Protocol
Stars: ✭ 163 (+64.65%)
Mutual labels:  real-time, realtime
Rnl
RNL - Realtime Network Library - The opensource reliable UDP network library
Stars: ✭ 59 (-40.4%)
Mutual labels:  real-time, realtime
Sanity
The Sanity Studio – Collaborate in real-time on structured content
Stars: ✭ 3,007 (+2937.37%)
Mutual labels:  real-time, realtime
Opentok Ios Sdk Samples
Example applications that use the OpenTok iOS SDK
Stars: ✭ 186 (+87.88%)
Mutual labels:  real-time, realtime
react-relay-appsync
AppSync for Relay
Stars: ✭ 19 (-80.81%)
Mutual labels:  offline, appsync
Embedded UKF Library
A compact Unscented Kalman Filter (UKF) library for Teensy4/Arduino system (or any real time embedded system in general)
Stars: ✭ 31 (-68.69%)
Mutual labels:  real-time, realtime
Laravel Parse
A Parse SDK bridge for Laravel 5
Stars: ✭ 116 (+17.17%)
Mutual labels:  real-time, realtime
Rtmlton
MLton with Realtime GC and Threading features
Stars: ✭ 98 (-1.01%)
Mutual labels:  real-time, realtime
Sandstone
PHP microframework designed to build a RestApi working together with a websocket server. Build a real time RestApi!
Stars: ✭ 98 (-1.01%)
Mutual labels:  real-time, realtime
microbium-app
Draw new worlds
Stars: ✭ 89 (-10.1%)
Mutual labels:  real-time, realtime
soketi
Just another simple, fast, and resilient open-source WebSockets server. 📣
Stars: ✭ 2,202 (+2124.24%)
Mutual labels:  real-time, realtime
Swellrt
SwellRT main project. Server, JavaScript and Java clients
Stars: ✭ 205 (+107.07%)
Mutual labels:  real-time, realtime
intrinio-realtime-python-sdk
Intrinio Python SDK for Real-Time Stock Prices
Stars: ✭ 79 (-20.2%)
Mutual labels:  real-time, realtime
Realtime Newsapi
Financial News Aggregator - Real Time & Query API for Financial News
Stars: ✭ 34 (-65.66%)
Mutual labels:  real-time, realtime
Rtb
Benchmarking tool to stress real-time protocols
Stars: ✭ 35 (-64.65%)
Mutual labels:  real-time, realtime

Introduction

This is a starter application for using the sample app in the AWS AppSync console when building your GraphQL API. The sample app creates a GraphQL schema and provisions Amazon DynamoDB resources, then connects them appropriately with Resolvers. The application demonstrates GraphQL Mutations, Queries and Subscriptions using AWS AppSync. You can use this for learning purposes or adapt either the application or the GraphQL Schema to meet your needs.

EventDetails

Features

  • GraphQL Mutations

    • Create new events
    • Create comments on existing events
    • Delete an event (swipe left on event)
  • GraphQL Queries

    • Get all events (w/ pagination support)
    • Get an event by Id
  • GraphQL Subscriptions

    • Real time updates for comments on an event
  • Authorization

    • The app uses API Key as the authorization mechanism

Requirements

  • Xcode 11 or later
  • iOS 11 or later
  • CocoaPods

AWS Setup

  1. Navigate to the AWS AppSync console using the URL: http://console.aws.amazon.com/appsync/home

  2. Click on Create API and select the Event App under the sample project in the bottom pane, and select Start. Enter a API name of your choice. Click Create.

iOS Setup

Clone this repository:

git clone https://github.com/aws-samples/aws-mobile-appsync-events-starter-ios.git

Wait until the progress bar at the top has completed deploying your resources. Then from the integration page of your GraphQL API (you can click the name you entered in the left hand navigation).

On this same page, select iOS at the bottom to download your awsconfiguration.json configuration file by clicking the Download Config button. Replace the awsconfiguration.json file in the root of your app with the file you just downloaded.

To setup the dependencies in the app, navigate to the project you just cloned from a terminal and run:

pod install

Now open EventsApp.xcworkspace, then build and run the app.

Application Walkthrough

EventsAPI.swift

  • The EventsAPI.swift file contains code generated through aws-appsync-codegen based on the GraphQL schema. It requires you to define a .graphql file and the schema.json for your API. For this example, they are in events.graphql and schema-events.json. If you update your schema in the future, you should use the AWS Amplify CLI codegen feature to automatically download and update your queries, mutations, subscriptions and the schema. For a tutorial of this, click here.

EventListViewController (Query)

  • The EventListViewController file lists all the events accessible to the user. It returns data from the offline cache first if available and later fetches it from remote to update the local cache.

EventDetailsViewController (Mutation, Query, Subscription)

  • The EventDetailsViewController file lists information about an event and allows new comments to be added. It also subscribes to live updates for new comments which are made on that post.

AddEventViewController (Mutation)

  • The AddEventViewController creates a new event using the details entered on screen.

Getting Help

We use AppSync iOS SDK GitHub issues for tracking questions, bugs, and feature requests.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].