Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
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
90
サーバレスアーキテクチャでSlackBotを作る / serverless-slackbot
howyi
0
89
AWS認定を受けた話 / AWS CERTIFIED
howyi
0
93
自作PHPライブラリをリファクタリングした / Refactoring library
howyi
0
130
PhpStormの設定晒す / Customizing PhpStorm
howyi
0
120
ClickUpで始める進捗管理 / ClickUp
howyi
0
530
Other Decks in Programming
See All in Programming
自動化したのに回らない テスト運用の壁―AI時代の品質責任と生産性
mfunaki
0
120
TSX の <Hoge<Fuga>> という構文に驚いた話 / tsx-type-argument-syntax
kanaru0928
0
210
生成AI導入の「期待外れ」を乗り越える ー 開発フロー改革が目指す、真の組織変革
starfish719
0
4.2k
Foundation Models frameworkで画像分析
ryodeveloper
1
610
型も通る、synthも通る、それでも危ない 〜AIのCDKの権限とコストを機械で検証する〜 / It Passes Type Checks, It Passes Synth Checks, but It’s Still Risky — Automatically Verifying Permissions and Costs in AI’s CDK —
seike460
PRO
1
550
PHP に部分適用が来るぞ!……ところで何それ?おいしいの? #phpcon / phpcon-2026
shogogg
0
620
AWS CDK を「作」ってみた 〜フルスクラッチで見えた CDK の裏側〜 / aws-cdk-from-scratch
gotok365
3
2.8k
仕様駆動開発の消費期限
watany
20
7.9k
Laravel Boostに学ぶ、AIにPHPを書かせる技術 〜OSSの実装から蒸留するエージェント制御の王道〜
kentaroutakeda
3
680
いまどきの Codex で開発する visionOS アプリの開発スタイルについて
karad
0
130
夏だ!祭りだ!祭りとはドメインモデリングでは?
ryugen04
0
220
React本体のコードリーディング
high_g_engineer
1
140
Featured
See All Featured
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
330
Testing 201, or: Great Expectations
jmmastey
46
8.2k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
550
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.8k
Amusing Abliteration
ianozsvald
1
240
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.3k
Design in an AI World
tapps
1
280
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
450
WCS-LA-2024
lcolladotor
0
790
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.5k
VelocityConf: Rendering Performance Case Studies
addyosmani
332
25k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
430
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ʹϑοΫͯ͠ߋ৽
ΣϒαΠτ͕͙͢࡞Εͯศར
ଞʹ͍Ζ͍Ζͳػೳ͕͋Γ·͢