aws-samples / aws-samples/aws-amplify-react-iot-pub-sub-using-cp
There are some steps that are ommited that are required in order to this project to work
- Dominant language
- JavaScript
- Stars
- 8
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
==================First Steps==================
1. Clone the project
2. Install and configure the AWS Amplify CLI
```
git clone https://github.com/aws-samples/aws-amplify-react-iot-pub-sub-using-cp.git
cd aws-amplify-react-iot-pub-sub-using-cp
sudo npm i -g @aws-amplify/cli
npm install
amplify configure
<...ommitted...>
#On this step, ignore the browser and hit enter in the shell
Specify the AWS Region
? region:
Specify the username of the new IAM user:
? user name:
<...ommitted...>
Complete the user creation using the AWS console.
#On this step from the IAM AWS Console > Click on "Next:Permissions" > "Next:tags" > "Next:Review" > Create User
#Then Download and store the AWS Credentials in a save place.
Press Enter to continue
# Enter the new credentials and a profile name.
? accessKeyId:
? secretAccessKey:
? Profile Name:
amplify init
? Do you want to use an existing environment?: No
? Enter a name for the environment: (e.g. dev)
? Select the authentication method you want to use: AWS profile
? Please choose the profile you want to use:
amplify push
```
==================Next Steps==================
1. Copy your IoT data endpoint from the AWS Console.
2. Proceed with steps 5 - 9 in: https://github.com/aws-samples/aws-amplify-react-iot-pub-sub-using-cp
3. Modify the file under: src/aws-exports.js in the following fiedls:
```
"aws_project_region": "",
"aws_cognito_identity_pool_id": "",
"aws_user_pools_id": "", //get the value in the 'UserPoolId' field under the amplify/backend/amplify-meta.json file
"aws_user_pools_web_client_id": "", //get the value in the 'AppClientIDWeb' field under the amplify/backend/amplify-meta.json file
```
4. Run the website locally from a terminal:
` $ npm run start`
5. Navigate to localhost:3000, sign up, and test!
Contributor guide
Assessment
This issue has not been assessed yet.