All Projects → amazon-archives → Aws Mobile Appsync Events Starter React

amazon-archives / Aws Mobile Appsync Events Starter React

Licence: apache-2.0
GraphQL starter application with Realtime and Offline functionality using AWS AppSync

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Aws Mobile Appsync Events Starter React

Aws Mobile Appsync Events Starter React Native
GraphQL starter application with Realtime and Offline functionality using AWS AppSync
Stars: ✭ 134 (-60.24%)
Mutual labels:  graphql, appsync, aws, real-time, realtime, offline
Aws Mobile Appsync Chat Starter Angular
GraphQL starter progressive web application (PWA) with Realtime and Offline functionality using AWS AppSync
Stars: ✭ 449 (+33.23%)
Mutual labels:  graphql, appsync, aws, real-time, offline
Aws Appsync Community
The AWS AppSync community
Stars: ✭ 356 (+5.64%)
Mutual labels:  graphql, appsync, aws, realtime
aws-mobile-appsync-events-starter-ios
GraphQL starter application with Realtime and Offline functionality using AWS AppSync
Stars: ✭ 99 (-70.62%)
Mutual labels:  real-time, offline, realtime, appsync
Spikenail
A GraphQL Framework for Node.js
Stars: ✭ 358 (+6.23%)
Mutual labels:  graphql, real-time, realtime
Aws Appsync Chat
Real-Time Offline Ready Chat App written with GraphQL, AWS AppSync, & AWS Amplify
Stars: ✭ 522 (+54.9%)
Mutual labels:  graphql, real-time, offline
Aws Mobile Appsync Sdk Js
JavaScript library files for Offline, Sync, Sigv4. includes support for React Native
Stars: ✭ 806 (+139.17%)
Mutual labels:  graphql, appsync, aws
Graphql Auto Transformer
A custom transformer of the amplify-cli. It can control accessibility of auto generated fields.
Stars: ✭ 31 (-90.8%)
Mutual labels:  graphql, appsync, aws
Appsync Resolvers Example
Example project for AppSync, GraphQL, and AWS Lambda resolvers using Go.
Stars: ✭ 50 (-85.16%)
Mutual labels:  graphql, appsync, aws
Serverless
This is intended to be a repo containing all of the official AWS Serverless architecture patterns built with CDK for developers to use. All patterns come in Typescript and Python with the exported CloudFormation also included.
Stars: ✭ 1,048 (+210.98%)
Mutual labels:  graphql, appsync, aws
Moviesapp
React Native Movies App: AWS Amplify, AWS AppSync, AWS Cognito, GraphQL, DynamoDB
Stars: ✭ 78 (-76.85%)
Mutual labels:  graphql, appsync, aws
Aws Serverless Appsync Loyalty
Unicorn Loyalty: E-Commerce Serverless GraphQL Loyalty Sample App
Stars: ✭ 110 (-67.36%)
Mutual labels:  graphql, appsync, aws
Aws Mobile Appsync Sdk Ios
iOS SDK for AWS AppSync.
Stars: ✭ 231 (-31.45%)
Mutual labels:  graphql, appsync, aws
accelerator-core-ios
Syntax sugar of OpenTok iOS SDK with Audio/Video communication including screen sharing
Stars: ✭ 30 (-91.1%)
Mutual labels:  real-time, realtime
traffic
Massively real-time traffic streaming application
Stars: ✭ 25 (-92.58%)
Mutual labels:  real-time, realtime
realtime-object-detection
Detects objects in images/streaming video
Stars: ✭ 16 (-95.25%)
Mutual labels:  real-time, realtime
FlipED
A LMS built specifically for Thailand's Education 4.0 system.
Stars: ✭ 24 (-92.88%)
Mutual labels:  real-time, realtime
TweetMigration
A WebGL heatmap of global Twitter activity
Stars: ✭ 42 (-87.54%)
Mutual labels:  real-time, realtime
transit
Massively real-time city transit streaming application
Stars: ✭ 20 (-94.07%)
Mutual labels:  real-time, realtime
signalr-client
SignalR client library built on top of @aspnet/signalr. This gives you more features and easier to use.
Stars: ✭ 48 (-85.76%)
Mutual labels:  real-time, realtime

Introduction

This is a Starter React 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 EventDetails

Features

  • GraphQL Mutations

    • Create new events
    • Create comments on existing events
  • GraphQL Queries

    • Get all events
    • 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

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.

React Setup

First, clone this repo:

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

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 JavaScript at the bottom to download your aws-exports.js configuration file by clicking the Download Config button. Replace the aws-exports.js file in the root of your app with the file you just downloaded.

Install dependencies

npm install

Start the application:

npm run start

Application Walkthrough

./src/App.js

  • Sets up the application navigation between screens using BrowserRouter from React Router.
  • Configures the AWSAppSyncClient using an API Key. This can be confugured to use Amazon Cognito Identity or Amazon Cognito User Pools as well.

./Components/AllEvents.js

  • Uses Higher Order Components for making GraphQL calls to AWS AppSync.
  • View to display all the events from ./GraphQL/QueryAllEvents.js
  • Allows you to delete individual events. This will use ./GraphQL/MutationDeleteEvent.js

./Components/NewEvent.js

  • Uses Higher Order Components for making GraphQL calls to AWS AppSync.
  • View to create a new event using ./GraphQL/MutationCreateEvent.js

./Components/ViewEvent.js and EventComment.js

  • Uses Higher Order Components for making GraphQL calls to AWS AppSync.
  • ViewEvent gets all the comments for a specific event when page loads with a GraphQL query defined in ./GraphQL/QueryGetEvent
  • Once the page loads, EventComments sets up a GraphQL subscription using ./GraphQL/SubscriptionEventComments to display any new comments on an event in realtime.

./GraphQL Directory

  • Contains GraphQL queries and mutations for interacting with AWS AppSync.
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].