Note : Requires Sparta v1.9.0 or higher
This is a Sparta application that leverages the AWS Amplify UI Components.
It builds on the aws-amplify-auth-starters project to an HTML GUI that uses Cognito-backed authorization.
Features:
- ReactJS
npm run build
is executed as ago:generate
step via a magefile task. - Cognito resources are defined in a ServiceDecoratorHook
- Cognito resources use go-cloudcondensor to streamline template definition. go-cloudcondensor is similar to the AWS CDK.
- The dynamic infrastructure values are included in the S3 Site MANIFEST.JSON, deployed to the S3 bucket, and fetched by whatwg-fetch.
To build this project:
git clone https://github.com/mweagle/SpartaAmplify
cd SpartaAmplify/aws-amplify-auth-starters
npm install
cd ..
go run main.go provision --s3Bucket $MY_BUCKET
Visit the S3SiteURL URL Output to view your React app.
NOTE: Phone number signup requires a specific format.
Example: +12065551212
See the React starter app for more information.