XavierBrinonECS/Amplify_01

Custom auth from with Amplify and React

★ 0Forks 0JavaScriptGitHub ↗Compare

README

Amplify_01

Custom auth from with Amplify and React https://youtu.be/JaVu-sS3ixg

** Setup and installation *** snowpack

npx create-snowpack-app xb-amplify-auth --template @snowpack/app-template-react-typescript

*** amplify If you don’t have amplify yet

npm install -g @aws-amplify/cli

amplify configure

From the newly created application folder we can initialise amplify

cd amplyAuth
amplify init

This will trigger some questions for you to answer It will then build a stack with basic Role and S3 bucket

*** aws amplify in the project folder still

npm i aws-amplify

** Authentication *** add and configure package +NAME: install aws-amplify package

amplify add auth

We choose default configuration and username for sign in.

+NAME: build the local config into the clound

amplify push

*** Apply config in React app Set up the Front-End #+NAME in src/index.js

import Amplify from "aws-amplify";
import awsExports from "./aws-exports";
Amplify.configure(awsExports);

Contributors

XavierBrinonECS

Issues