ashishtilara / aws-cognito-ionic-demo

Demo application stores a list of tasks to do in AWS Cognito. Demo application was made by following technology stack: Ionic Framework 1, Angular 1, AWS SDK for JavaScript, HTML, CSS.

Home Page:https://www.hawatel.com/blog/aws-cognito-authentication-in-ionic-framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AWS Cognito Ionic Example

Demo application stores a list of tasks to do in AWS Cognito. Demo application was made by following technology stack: Ionic Framework 1, Angular 1, AWS SDK for JavaScript, HTML, CSS.

Installation

$ git clone https://github.com/Hawatel/aws-cognito-ionic-demo.git
$ npm install
$ sudo npm install -g cordova
$ sudo npm install -g ionic
$ ionic state restore

Configuration

Add userPoolId, clientId, and identityId to the file: www/js/factories/awsCognitoIdentity.factory.js

// how to get userPoolId, go to AWS Console -> Cognito -> User pools -> <select_user_pool> -> Pool details -> Pool Id
var userPoolId = '';
// how to get clientId, go to AWS Console -> Cognito -> User pools -> <select_user_pool> -> Apps -> App client id
var clientId = '';
// how to get identityPoolId, go to AWS Console -> Cognito -> Federate Identities > <select_federate_identity> -> Edit -> Identity pool ID
var identityPoolId = '';

Build mobile package file

$ ionic build android
or
$ ionic build ios

Development

$ ionic serve

Contributing

See CONTRIBUTING

License

The gem is available as open source under the terms of the MIT License.

About

Demo application stores a list of tasks to do in AWS Cognito. Demo application was made by following technology stack: Ionic Framework 1, Angular 1, AWS SDK for JavaScript, HTML, CSS.

https://www.hawatel.com/blog/aws-cognito-authentication-in-ionic-framework


Languages

Language:JavaScript 80.3%Language:CSS 19.5%Language:HTML 0.2%