Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Amplifyの紹介/amplify-introduction
Search
howyi
May 03, 2019
Programming
110
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Amplifyの紹介/amplify-introduction
howyi
May 03, 2019
More Decks by howyi
See All by howyi
Go+gRPCで作った次世代店舗の裏側
howyi
1
1.7k
GraphQLを活用するツールやライブラリ / graphql-libraries
howyi
0
110
GraphQLの紹介 / graphql-introduction
howyi
0
96
サーバレスアーキテクチャでSlackBotを作る / serverless-slackbot
howyi
0
92
AWS認定を受けた話 / AWS CERTIFIED
howyi
0
98
自作PHPライブラリをリファクタリングした / Refactoring library
howyi
0
130
PhpStormの設定晒す / Customizing PhpStorm
howyi
0
130
ClickUpで始める進捗管理 / ClickUp
howyi
0
540
Other Decks in Programming
See All in Programming
世界の中心で、AI(App Intents)をさけぶ ー App Intents中心設計の実践ガイド
touyou
0
550
Intent as Code
shoppingjaws
6
990
手動確認はもう限界 〜XCUITestでCustom URL Schemeの遷移を起動種別ごとに自動テストする〜 / Testing Custom URL Schemes with XCUITest
otouto
0
260
標準パッケージに uuid が追加された 背景から見る Go らしい意思決定 / go_127_uuid_decision
convto
5
6.9k
Swift愛好会100回記念 第1回を振り返る
jollyjoester
0
120
仕様駆動開発による爆速プロダクト開発 / Bakusoku Spec Driven Development
kobakei
0
110
A2UI for Android: Safely Rendering AI-Generated UI with Jetpack Compose - DroidKaigi 2026
itsmedreamwalker
0
130
AIを上手に使っていこうとしたら越境せざるを得なくなった話 〜実践1年で見えた境界を越えなければならない理由と進め方〜 / Crossing borders with AI
tomoyakitaura
4
1.1k
XHTMLが残したもの
yosuke_furukawa
PRO
2
790
市販E-Readerを乗っ取れ 〜Embedded Swiftで電子ペーパーガジェットを制御する〜
trickart
0
190
thread_parallel_with_free-threaded_Python_and_NumPy.pdf
riku_sakamoto
0
330
新卒PdEのリアル
ryu1013
1
500
Featured
See All Featured
Practical Orchestrator
shlominoach
191
12k
First, design no harm
axbom
PRO
2
1.3k
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.6k
How Software Deployment tools have changed in the past 20 years
geshan
1
34k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
280
GraphQLとの向き合い方2022年版
quramy
50
15k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.6k
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
460
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
1
2.1k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.8k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
520
Paper Plane
katiecoart
PRO
3
53k
Transcript
AWS Amplifyͷհ
ͳΜͰ͔͢͜Ε ެࣜ Q&A ΑΓ
None
ͳΜͰ͔͢͜Ε •ࣗಈσϓϩΠɺڥཧΛߦ͏Amplifyίϯιʔϧ •AWSͷ֤αʔόϨεܥαʔϏεͱ࿈ܞ͢ΔAmplify CLI •AWSͱ࿈ܞ͢ΔϑϩϯτͷߏஙΛָʹ͢ΔJSϥΠϒϥϦaws-amplify •࣮ػςετΛཧ͢ΔAWS Device Farm …Ͱߏ͞ΕΔαʔόϨεߏஙϑϨʔϜϫʔΫʢͱ͍͏ղऍʣ
ͳΜͰ͔͢͜Ε •ࣗಈσϓϩΠɺڥཧΛߦ͏Amplifyίϯιʔϧ •AWSͷ֤αʔόϨεܥαʔϏεͱ࿈ܞ͢ΔAmplify CLI •AWSͱ࿈ܞ͢ΔϑϩϯτͷߏஙΛָʹ͢ΔJSϥΠϒϥϦaws-amplify •࣮ػςετΛཧ͢ΔAWS Device Farm …Ͱߏ͞ΕΔαʔόϨεߏஙϑϨʔϜϫʔΫʢͱ͍͏ղऍʣ
Amplify CLI $ npm install -g @aws-amplify/cli $ amplify configure
$ amplify init •amplifyίϚϯυͷॳظԽΛߦ͏ •Ξοϓϩʔυʹ༻͢ΔΞΧϯτͷׂɺڥ໊ͷઃఆ
$ amplify add {ػೳ໊} •ػೳ໊ʹඥͮ͘αʔϏεͷܗΛੜ͢Δ •ফ͢ͱ͖ $ amplify delete •ػೳผʹίϚϯυ͋Δ
$ amplify {ػೳ໊} {ίϚϯυ}
Amplify CLIͷओཁػೳ
$ amplify push
Amplify CLIΛ༻͍ͨ։ൃͷྲྀΕ •αʔϏεͷઃఆCLI͔Βamplify add {ػೳ໊}ͰՃ͢Δ •ઃఆͯ͢ίʔυ্Ͱཧ͞ΕɺڥมΛ༻͍ͨෳ ਓͰͷ։ൃαϙʔτ •amplify push ͰCloudFormationͷϑΝΠϧΛੜ͠ɺߋ৽
ͷ͋ͬͨઃఆΛAWS্ө
LambdaΛͬͨAPIαʔόΛ࡞Δ •amplify add function •ExpressͷίʔυΛੜ͢ΔઃఆΛબ •amplify add api → API
Gateway Λબ •add functionͰՃͨ͠lambdaͱ݁߹͢ΔΑ͏ʹઃఆ •amplify push •APIαʔόΛpush →
ಈ͘API͕͙͢࡞Εͯศར
AppSyncΛར༻ͨ͠APIαʔόΛߏங͢Δ •amplify add api → AppSync Λબ •GraphQLͷDirectiveΛ׆༻ͨ͠ଞαʔϏεͱͷ࿈ܞ͕Մೳ
AppSyncͷGraphQL Transform type Blog @model { id: ID! name: String!
posts: [Post] @connection(name: "BlogPosts") } type Post @model { id: ID! title: String! blog: Blog @connection(name: "BlogPosts") comments: [Comment] @connection(name: "PostComments") } type Comment @model { id: ID! content: String post: Post @connection(name: "PostComments") } ϦϨʔγϣϯͷఆٛ @modelΛ͚ͭΔͱDynamoDBͷςʔϒϧͱͳΔ
AppSyncͷGraphQL Transform type Blog @model { id: ID! name: String!
posts: [Post] } $ amplify gql-compile type Blog { id: ID! name: String! posts: [Post] } type Query { getBlog(id: ID!): Blog } Type Mutation { createBlog(input: CreateBlogI updateBlog(input: CreateBlogI deleteBlog(input: CreateBlogI } CRUDૢ࡞ͷQueryɺMutation ͦΕʹඥͮ͘ResolverΛࣗಈੜ ͦͷଞʹListऔಘͷQuery SubscriptionͳͲ͕ࣗಈൃߦ͞ΕΔ
ΣϒαʔϏε͕͙͢࡞Εͯศར
੩తαΠτΛϗεςΟϯά͢Δ •amplifty add hosting •amplify publish ͰϏϧυˠՌΛS3 ͷ੩తαΠτϗεςΟϯάΞοϓϩʔυ •ϏϧυखॱɺϏϧυઌมߋՄೳ
੩తαΠτΛϗεςΟϯά͢Δ •JSϥΠϒϥϦͷaws-amplifyΛ༻͢Δ͜ͱͰɺೝূͷ؆ུԽ •GraphQL͔ΒAPIͷΫϥε(JS, TS)͕ࣗಈੜ͞Εɺݺͼग़ͩ͢ ͚ͰAPI͕࣮ߦՄೳ
੩తαΠτΛϗεςΟϯά͢Δ •Amplifyͷίϯιʔϧ(AWS্)͔ΒɺυϝΠϯBASICೝূ ઃఆΛೖΕΔ͜ͱ͕Մೳ •ϒϥϯνͱରԠ͚ͮɺpushʹϑοΫͯ͠ߋ৽
ΣϒαΠτ͕͙͢࡞Εͯศར
ଞʹ͍Ζ͍Ζͳػೳ͕͋Γ·͢