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: The below commands will ask you to login with a username via the web console. This username should have admin priveleges so the CLI can perform the necessary actions.
- npm install -g @aws-amplify/cli - installs the amplify cli so it can be used via the command line
- amplify configure - creates the amplify admin user and stores credentials in ~/.aws/credentials. I'm not sure if this is for granting permissions to the CLI or if it is required for the amplify project. I would guess it is for the CLI and can be deleted after the project has been setup.
- amplify init - creates up 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/app-store-cors-proxy-aws directory, run npm install to generate the node_modules directory.
- Zip contents of the cloud_functions/app-store-cors-proxy-aws 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