@yKicchan
interface Me extends Person { name: "Yukiya Murata"; twitter: "@yKicchan"; company: "Fenrir Inc."; job: "Web engineer"; favorite: "花澤香菜" | "P5R" | "ピカチュウ"; skills: "React" | "Vue.js" | "Angular" | "PHP" | "Go"; }
$ npm install -g @aws-amplify/cli $ amplify confidure
$ npx create-react-app react-amplified --typescript $ cd react-amplified
$ amplify init
$ yarn add aws-amplify @aws-amplify/ui-react
aws-amplify
@aws-amplify/ui-react
npm
yarn
create-react-app
// src/index.tsx import Amplify from "aws-amplify"; import awsExports from "./aws-exports"; Amplify.configure(awsExports);
\イクゾー/ \デッデッデデデデ/ \カーン/
$ amplify add auth $ amplify push
push
amplify update auth
サンプルコード
$ yarn start
他にもカスタム認証だったり、 認証ログ取ったりといろいろできるゾ