aws-samples/aws-mobile-appsync-events-starter-react-native

Name: aws-mobile-appsync-events-starter-react-native

Owner: AWS Samples

Description: GraphQL starter application with Realtime and Offline functionality using AWS AppSync

Created: 2017-10-25 20:27:01.0

Updated: 2018-01-15 13:03:33.0

Pushed: 2018-01-11 01:00:41.0

Homepage: https://aws.amazon.com/appsync/

Size: 384

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Introduction

This is a Starter React Native 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
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 Sample Schema option. Enter a API name of your choice. Click Create.

React Native Setup

First, clone this repo:

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

From the homepage of your GraphQL API (you can click the name you entered in the left hand navigation) wait until the progress bar at the top has completed deploying your resources.

On this same page, select React Native at the bottom to download your AppSync.js configuration file into your project directory. Rename it to aws-exports.js.

Start the application:

install 
run ios   #run-android
Application Walkthrough
App.js
./Components/AllEvents.js
./Components/AddEvent.js
./queries Directory

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.