Skip to content

Sample Sparta app that provisions an Amplify ReactJS app to S3 and associated Cognito resources

Notifications You must be signed in to change notification settings

mweagle/SpartaAmplify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpartaAmplify

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 a go: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.

Usage

To build this project:

  1. git clone https://github.com/mweagle/SpartaAmplify
  2. cd SpartaAmplify/aws-amplify-auth-starters
  3. npm install
  4. cd ..
  5. 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.

Results

Infrastructure

About

Sample Sparta app that provisions an Amplify ReactJS app to S3 and associated Cognito resources

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published