An open API service indexing awesome lists of open source software.

https://github.com/mahdadghasemian/serverless-react-tutorial-project

An amplify example to work with 'aws cognito' inside the serverless-tutorial-project project
https://github.com/mahdadghasemian/serverless-react-tutorial-project

Last synced: 2 months ago
JSON representation

An amplify example to work with 'aws cognito' inside the serverless-tutorial-project project

Awesome Lists containing this project

README

        

# serverless-react-tutorial-project

# How to run this project
- npm i
- npm start

# How to create an amplify App

## Setup Amplify Cli
[Document Config](https://docs.amplify.aws/javascript/tools/cli/start/set-up-cli/)
[Document Initialize](https://docs.amplify.aws/javascript/tools/cli/start/key-workflows/#initialize-new-project)

- npm i -g @aws-amplify/cli
- npx create-react-app amplify-react-app
- cd amplify-react-app/
- amplify configure
- amplify init

## Setup Amplify Auth
[Document](https://docs.amplify.aws/javascript/build-a-backend/auth/set-up-auth/)

- amplify add auth
- amplify push
- npm install aws-amplify @aws-amplify/ui-react --save
- edit src/App.js
- npm start

## Setup Amplify GraphQL API
[Document](https://docs.amplify.aws/javascript/build-a-backend/graphqlapi/set-up-graphql-api/)

- amplify add api
- amplify push -y
- npm install aws-amplify --save
- edit src/App.js

![image](https://github.com/MahdadGhasemian/serverless-react-tutorial-project/assets/48379992/85e23ca0-32d9-4a67-9c73-6f16d7c9e370)