All Projects → youneshenniwrites → react-native-appsync-s3

youneshenniwrites / react-native-appsync-s3

Licence: MIT license
React Native app for image uploads to S3 and storing their records in Amazon DynamoDB using AWS Amplify and AppSync SDK

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-native-appsync-s3

lifemanager
⏱ 한 일을 기록하면 시각화 해서 보여주는 웹 앱⏱
Stars: ✭ 85 (+372.22%)
Mutual labels:  apollo-client, aws-dynamodb, aws-appsync
Aws Mobile React Native Starter
AWS Mobile React Native Starter App https://aws.amazon.com/mobile
Stars: ✭ 2,247 (+12383.33%)
Mutual labels:  dynamodb, s3, aws-amplify-react-native
Diamondb
[WIP] DiamonDB: Rebuild of time series database on AWS.
Stars: ✭ 98 (+444.44%)
Mutual labels:  dynamodb, s3
Aws Sdk Perl
A community AWS SDK for Perl Programmers
Stars: ✭ 153 (+750%)
Mutual labels:  dynamodb, s3
uzual-mobile
Feed your brains with habits for a better mood
Stars: ✭ 67 (+272.22%)
Mutual labels:  apollo-client, expo
Aws Testing Library
Chai (https://chaijs.com) and Jest (https://jestjs.io/) assertions for testing services built with aws
Stars: ✭ 52 (+188.89%)
Mutual labels:  dynamodb, s3
Historical
A serverless, event-driven AWS configuration collection service with configuration versioning.
Stars: ✭ 85 (+372.22%)
Mutual labels:  dynamodb, s3
mobile
🤳 React Native code examples for JavaScript Everywhere by Adam Scott, published by O'Reilly Media
Stars: ✭ 33 (+83.33%)
Mutual labels:  apollo-client, expo
Aws Mobile React Sample
A React Starter App that displays how web developers can integrate their front end with AWS on the backend. The App interacts with AWS Cognito, API Gateway, Lambda and DynamoDB on the backend.
Stars: ✭ 650 (+3511.11%)
Mutual labels:  dynamodb, s3
terraform-aws-s3
Terraform module to create default S3 bucket with logging and encryption type specific features.
Stars: ✭ 22 (+22.22%)
Mutual labels:  s3, s3-storage
aws-pdf-textract-pipeline
🔍 Data pipeline for crawling PDFs from the Web and transforming their contents into structured data using AWS textract. Built with AWS CDK + TypeScript
Stars: ✭ 141 (+683.33%)
Mutual labels:  dynamodb, s3
aws-certified-developer-associate-udemy-notes
AWS Certified Developer Associate Udemy Notes
Stars: ✭ 20 (+11.11%)
Mutual labels:  dynamodb, s3
Workshop Donkeytracker
Workshop to build a serverless tracking application for your mobile device with an AWS backend
Stars: ✭ 27 (+50%)
Mutual labels:  dynamodb, s3
Sherlock Holmes Partying In The Jungle
Parses AWS events payloads into a plain JavaScript object
Stars: ✭ 12 (-33.33%)
Mutual labels:  dynamodb, s3
Awesome Aws
A curated list of awesome Amazon Web Services (AWS) libraries, open source repos, guides, blogs, and other resources. Featuring the Fiery Meter of AWSome.
Stars: ✭ 9,895 (+54872.22%)
Mutual labels:  dynamodb, s3
Aws Sdk Js V3
Modularized AWS SDK for JavaScript.
Stars: ✭ 737 (+3994.44%)
Mutual labels:  dynamodb, s3
aws-dynamodb-java-example-local-testing
Example Gradle Java project for using AWS DynamoDB for local testing.
Stars: ✭ 22 (+22.22%)
Mutual labels:  dynamodb, aws-dynamodb
Aws Amplify Graphql
Sample using AWS Amplify and AWS AppSync together for user login and authorization when making GraphQL queries and mutations. Also includes complex objects for uploading and downloading data to and from S3 with a React app.
Stars: ✭ 490 (+2622.22%)
Mutual labels:  dynamodb, s3
Typescript Expo Apollo Boilerplate
Clean boilerplate for TypeScript + Expo (React Native) + React Apollo (GraphQL)
Stars: ✭ 144 (+700%)
Mutual labels:  apollo-client, expo
s3cli
Command line tool for S3
Stars: ✭ 21 (+16.67%)
Mutual labels:  s3, s3-storage

React Native AppSync S3

Final

This app allows the user to do the following:

  • Sign Up/In to the platform.
  • Access device library using Expo.
  • Upload pictures to AWS S3.
  • Store the pictures records in Amazon DynamoDB.
  • Display the pictures in the platform.

Prerequisites

Configuring the project

  1. Clone this repo to your local machine.
git clone https://github.com/yhenni1989/react-native-appsync-s3.git

cd react-native-appsync-s3
  1. Add AWS Amplify dependencies to your project.
yarn add aws-amplify aws-amplify-react-native

# or

npm install aws-amplify aws-amplify-react-native
  1. Initialise the AWS Amplify project.
amplify init

Follow the same instructions as below.

init

  1. Configure an Amazon Cognito User Pool to store users credentials.
amplify add auth

# When prompt, choose: Yes, use the default configuration.
  1. Add an Amazon S3 bucket to store pictures.
amplify add storage

# Choose: Content (Images, audio, video, etc.)
# Give access to only authenticated users.
# Give users read/write acces.
  1. Add the AWS AppSync API to use GraphQL and store data in DynammoDB.
amplify add api

# Choose GraphQL as the API service. 
# Choose an authorization type for the API: Amazon Cognito User Pool
# Do you have an annotated GraphQL schema? Yes
# Provide your schema file path: src/graphQL/schema.graphql
  1. Deploy your project to the AWS.
amplify push

cloudformation

Do you want to generate code for your newly created GraphQL API: No.

The AWS Amplify CLI will create an Amazon Cognito User Pool and Identity Pool, an Amazon S3 bucket to store each users photos and an AWS AppSync GraphQL API that uses Amazon DynamoDB to store data.

Running the application

  1. Install client dependencies.
yarn

# or

npm install
  1. You will need your AWS IAM credentials before running the application.
  • Copy your access and secret keys in the src/myKeys.js file of your project.
const keys = {
 accessKey: 'blablabla',
 secretKey: 'blablabla',
}
export default keys;
  • Save changes.
  1. Launch the React Native app in your simulator from the terminal under your project directory.
expo start --ios

# or

expo start --android
  1. Create a new user.
  • The app uses the Higher Order Component withAuthenticator (HOC) from AWS Amplify to perform the authentication flow: sign up, confirm sign up and sign in users.
  1. Add and display pictures.
  • If the application runs successfully you should be able to press the add button, allow access to device library, and select a picture from your device. This will upload the picture to S3 then make a GraphQL call to enter the record into DynamoDB.

  • You can then press the refresh button to display the picture on the screen.

Contribute

  • This project needs lots of improvement. Help me grow and improve it 💪.
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].