Amplify Hands-on
2019.05.25
[ 사전준비 ] 내용을 미리 해주세요
- AWS account 생성하기
- Cloud9 Workspace 생성하기 (또는 vscode)
- 설치 & 설정
https://github.com/Lana-Banana/amplify-photo-gallery-code.git
Code
Amplify deploy
S3
Cloud-front
(CDN)
Development
mode
Product
mode
Amplify development
How to install :
npm install -g @aws-amplify/cli
How to Use :
터미널에서 명령어 사용
# amplify init
# amplify add auth
# amplify push
백엔드 리소스 담당
Amplify CLI
How to install :
npm install —save aws-amplify
npm install —save aws-amplify-react
npm install —save aws-amplify-angular
npm install —save aws-amplify-vue
npm install —save aws-amplify-react-native
How to Use :
javascript 파일 안에서
프론트엔드 구성 담당
(UI 및 클라이언트에서 백엔드 api 호출)
Amplify Javascript
ampify/cli
amplify add auth
AppSync
Cognito
ampify/cli
amplify add api
DynamoDB
AlbumTable
PhotoTable
ampify/cli
amplify add function
Lambda
SaveAlbumInfo
ElasticSearch
Service
Detect Labels
ampify/cli
amplify add storage
Trigger
Creating Thumbnail
aws-amplify(javascript)
Storage.put(photo)
S3
Recognition
Save Thumbnail Info
Get photo from label info
Get photo
SavePhotoInfo
@Searchable
1. 인증 추가하기
Backend
Frontend
export default withAuthenticator(App, {includeGreetings: true});
2. Graphql API 생성
Backend
3. Album 관리
Frontend
4. 사진 관리
Backend
Frontend
5. Thumbnail 만들기
Backend
6. AI 추가하기
Backend
Frontend
workshopphotoprocessor/src/index.js
7. 배포
Backend
보너스 - Light Box
Frontend
보너스 - 다른 유저와 앨범 공유하기
Backend
Frontend