This project was bootstrapped with Create React App.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
AWS Amplify/Authentication Setup
Note you will need to create a user and/or accesskey and secret key in order for the CLI tool to execute. If you already have an amplify user, you can just add a new access key and use that. Follow directions here: https://blog.logrocket.com/authentication-react-apps-aws-amplify-cognito/
- Install node if not already installed.
- npm install -g @aws-amplify/cli - installs the amplify cli so it can be used via the command line
- amplify init (select no when prompted if you would like to use an AWS Profile, then enter the accesskey and secret key) - create and setup the amplify project
- amplify add auth - adds authentication to amplify project
- amplify push - pushes the project to the cloud
AWS Lambda Function Installation
- Add the AWS Lambda Execute or Full Control permissions to the Unauth role created by the Amplify/Authentication Setup.
- In the cloud_functions/xxxxxx directory, run npm install to generate the node_modules directory.
- Zip contents of the cloud_functions/xxxxxx folder and upload to AWS lambda console.
- Expose the lambda function via the desired endpoint (http) so the client app can access it.
Dynamo DB
- Add the AWS Dynamo DB permissions to the Unauth role created by the Amplify/Authentication Setup.
- In the Dynamo DB web console create the applications table