To create the AWS resources that are required for this app to run,
run the aws/createResources.sh
file included under the aws directory. You might need to perform
aws cognito-identity set-identity-pool-roles from the console.
# Clone it from github
git clone --depth 1 [email protected]:awslabs/aws-cognito-angular2-quickstart.git
# Install the NPM and Bower packages
npm install
bower install
# Run the app in dev mode
npm start
# Build the project and sync the output with the S3 bucket
ng build; cd dist; aws s3 sync . s3://budilov-cognito/
# Test it out
curl –I http://budilov-cognito.s3-website-us-east-1.amazonaws.com/
As is, the code has default configuration, pointing to the developer's region. You
will need to change the pool id, region, and dynamodb table id. You can find these
configurations in aws.service.ts
and cognito.service.ts