https://github.com/ntegral/ngx-amplify
An angular library for integration AWS cloud services (cognito)
https://github.com/ntegral/ngx-amplify
angular aws cognito ng-universal
Last synced: 3 months ago
JSON representation
An angular library for integration AWS cloud services (cognito)
- Host: GitHub
- URL: https://github.com/ntegral/ngx-amplify
- Owner: ntegral
- License: isc
- Created: 2019-11-04T17:12:53.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-03T00:55:24.000Z (about 3 years ago)
- Last Synced: 2025-03-05T12:08:42.648Z (3 months ago)
- Topics: angular, aws, cognito, ng-universal
- Language: TypeScript
- Size: 953 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ngx-amplify
An angular library for integration AWS cloud services (cognito, s3)[](https://npmjs.org/package/ngx-amplify "View this project on npm")
[](http://opensource.org/licenses/ISC)## Table Of Contents
- [Installation](#installation)
- [Getting Started](#getting-started)
- [Contributing](#contributing)
- [License](#license)
- [Acknowledgements](#acknowledgements)## Installation
```bash
npm install --save ngx-amplify amazon-cognito-identity-js amazon-cognito-identity-js-typescript
```## Getting Started
The simplest way to use `ngx-amplify` is to use `NgxAmplifyModule.forRoot`
```typescript
import { NgxAmplifyModule } from 'ngx-amplify';@Module({
imports: [
NgxAmplifyModule.forRoot({
region:'us-east-x',
userPoolId: 'us-east-1_kT3FBpRxA',
appId: '1r9vg3ob81jamk62mjepejd3db',
idpUrl: `cognito-idp.us-east-x.amazonaws.com`,
identityPoolId: 'us-east-1:08f3112b-cc65-49e4-8063-81f16cccd1ax',
storage: {
bucketName: 'awsbucket',
bucketRegion: 'us-east-x',
defaultLevel: 'public',
folderLevel: 'public'
}
}),
],
})
export class AppModule {}
```add the following code to the polyfill.ts file
```typescript
* APPLICATION IMPORTS
*/
(window as any).global = window;
(window as any).process = {
env: { DEBUG: undefined },
};
```## Contributing
I would greatly appreciate any contributions to make this project better. Please
make sure to follow the below guidelines before getting your hands dirty.1. Fork the repository
2. Create your branch (`git checkout -b my-branch`)
3. Commit any changes to your branch
4. Push your changes to your remote branch
5. Open a pull request## License
Distributed under the ISC License. See `LICENSE` for more information.
## Acknowledgements
- [ntegral inc](http://www.ntegral.com)
- [aws](https://aws.amazon.com)Copyright © 2019 Ntegral Inc.