Skip to content

Instantly share code, notes, and snippets.

@russomi
Last active November 29, 2021 02:02
Show Gist options
  • Save russomi/907f8bc810a1b5c4a5141062894c87a4 to your computer and use it in GitHub Desktop.
Save russomi/907f8bc810a1b5c4a5141062894c87a4 to your computer and use it in GitHub Desktop.
Amplify React

Amplify React

Set up fullstack project

npm install -g @aws-amplify/cli
amplify configure

npx create-react-app react-amplified

cd react-amplified
amplify init

# install latest version of ui-react
# see https://ui.docs.amplify.aws/getting-started/installation?platform=react
# npm install aws-amplify @aws-amplify/ui-react
# aws-amplify@4.3.8
# @aws-amplify/ui-react@2.1.1
npm install aws-amplify @aws-amplify/ui-react

amplify add api

amplify push

amplify status

amplify console api

amplify console

amplify mock api

---

amplify add auth

amplify push

amplify console

Resources

Tutorial: Intro to React

npx create-react-app my-app

cd my-app
cd src

# If you're using a Mac or Linux:
rm -f *

# Then, switch back to the project folder
cd ..

Resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment