Skip to content

mickadoua/aws-cognito-angular2-quickstart

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cognito Quickstart

What does this app do?

QuickStart Angular2 Cognito App

Tech Stack

Required Tools

Frameworks

AWS Setup

To create some of the AWS resources that are required for this app to run, run the aws/createResources.sh file included under the aws directory.

You will need to create the user pool manually through the console. Afterwards, you'll need to update the identity pool with the relevant user pool information under Authentication Providers. Also, you'll need to assign the correct roles to the identity pool.

Getting the code

# Clone it from github
git clone --depth 1 [email protected]:awslabs/aws-cognito-angular2-quickstart.git
# Install the NPM & Bower packages, and typings
npm install
bower install
typings 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/

Necessary changes

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

You will also need to change the account id in authrole.json

About

QuickStart Cognito User Pools Angular2/Typescript web applicaton

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 41.1%
  • TypeScript 34.8%
  • HTML 15.6%
  • Shell 4.5%
  • CSS 4.0%