2020. 5. 14. 11:36ㆍ카테고리 없음
두가지 방법이 있더라구요 모델을 만들어서 Amplify.API.mutate 로 연결하는 방법과
https://docs.amplify.aws/lib/getting-started/integrate/q/platform/android 참고
AWSAppSyncClient로 연결하는방법
https://docs.amplify.aws/sdk/api/graphql/q/platform/android#client-initialization 참고
이있는데 위에 방법은 에러가 나서 잘안되어서 아래방법으로 위에 스크린샷처럼 데이터 등록은 된 상태
Amplify Framework Docs
Amplify Framework documentation - Learn how to use Amplify to develop and deploy cloud-powered mobile and web apps.
docs.amplify.aws
Amplify Framework Docs
Amplify Framework documentation - Learn how to use Amplify to develop and deploy cloud-powered mobile and web apps.
docs.amplify.aws
일어 페이지도 많은 도움이 되었다
근데 결국 문제는 안드로이드 스튜디오에서 node.js를 실행할수 없다 그래서 modelgen을 생성할수 없다 였다
그래서 더 찾아보니
AWS Amplify Android を試してみる(Mac) - Qiita
AWS Amplify iOSを試したい方はこちらを参照ください はじめに AWS Amplify Android をGetting StartedにしたがってMacで試してみる。 以降の各章はGetting Startedに合...
qiita.com
일어 페이지도 많은 도움이 되었다
근데 결국 문제는 안드로이드 스튜디오에서 node.js를 실행할수 없다 그래서 modelgen을 생성할수 없다 였다
그래서 더 찾아보니
https://github.com/aws-amplify/amplify-cli/issues/3745
While using Amplify DataStore, Android Studio cannot find nodejs installed in the system. · Issue #3745 · aws-amplify/amplify-
Describe the bug I have created an Android App and I am trying to integrate Amplify DataStore into it. In the process, while trying to run the modelgen task from Android Studio I am observing an er...
github.com
여기서 문제를 해결했다
댓글중에 아래와 같은 댓글이 있어서 해당프로젝트 폴더 경로로 가서 실행했더니 java 파일이 생성되었다
--------------------------------------------------------------
이것은 Windows의 버그 인 것 같습니다. 해결 방법으로
npx amplify-app --platform android
증폭 프로젝트를 설정 한 다음
amplify codegen models
모델을 생성 하기 위해 실행할 수 있습니다.
--------------------------------------------------------------
근데 자바파일은 생성이 되었지만 모델을 쓰는 방식의 자바파일이므로 결국 안되고 두번째 방법으로 되었다
DynamicDB 접근
자 이제 로그인 구현을 위해 예제를 통해 접근하는 방법을 연구 하도록 하자
https://github.com/amazon-archives/aws-mobile-appsync-events-starter-android
amazon-archives/aws-mobile-appsync-events-starter-android
GraphQL starter application using AWS AppSync. Contribute to amazon-archives/aws-mobile-appsync-events-starter-android development by creating an account on GitHub.
github.com
예제를 받아서 appsync 를 이용한 방법으로 보면
event 리스트 데이터를 불러와서 리스트에 뿌려주는 내용과 event 데이터를 추가하는 내용이 들어있다
---------------------------------------------------------------------------------------------------------------------------
아래는 추가 정보를 얻은곳
지락문화예술공작단
I'm Infra Architect
jirak.net
Building Android Landmark App with AWS Amplify, Google Sign-In with GraphQL
This article to explain step by step to create a new Android App using Google Sign In API, Google Map API, AWS Amplify, DynamoDB to fulfil…
medium.com
https://github.com/stevenkabc/amplify-android
stevenkabc/amplify-android
Walkthrough of creating an Android app leveraging AWS Amplify CLI. - stevenkabc/amplify-android
github.com
https://github.com/aws-amplify/amplify-android
aws-amplify/amplify-android
A declarative library for application development using cloud services. - aws-amplify/amplify-android
github.com
https://blog.naver.com/zion830/221661486117
AWS를 활용한 안드로이드 앱 (6) 안드로이드에서 로그인, 회원가입 구현하기, Retrofit 라이브러리로
이 글은 본인의 AWS 이용기를 정리한 글로, 글 전체의 목차는 https://blog.naver.com/zion830/22135330...
blog.naver.com