LoginSignup
0
0

AWS Amplifyを使ってみたので少しノート

Posted at

参考とした資料

https://qiita.com/t_okkan/items/38aca98993bf06598af6
https://dev.classmethod.jp/articles/reintroduction-aws-amplify/

操作手順

プロジェクトの初期化、対話型でセットアップ、初心者でも操作できて素晴らしい

amplify configure

image.png

途中でAWSのコンソールに切り替わって操作が必要、少し違和感がある

image.png

リポジトリの初期化、理由がわからないHappy hacking!

npx create-react-app amplify-todo

image.png

リポジトリの中でamplifyの初期化と設定、ほとんどデフォルトのまま

amplify init

image.png

認証系の追加、昔はCognitoで一々手動で設定していたけど、今はほぼワンクリックでできた

amplify add auth

image.png

ローカルからプッシュ、自動で同期すると思ったけど実は先までの操作は全部ローカル

amplify push

一応ローカルで起動してみて、問題がなかった

npm start

image.png

補足

+αで、APIの追加、馴染みのないGraphQL、せっかくなのでこの機にGraphQLも勉強していく

amplify add api

image.png

Schemaの確認と修正はコンソールでできる

image.png

[また時間がある時に更新]

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0