https://github.com/olliethedev/amplifiers
Custom GraphQL transformers to extent AWS Amplify functionality.
https://github.com/olliethedev/amplifiers
amplify graphql
Last synced: 8 months ago
JSON representation
Custom GraphQL transformers to extent AWS Amplify functionality.
- Host: GitHub
- URL: https://github.com/olliethedev/amplifiers
- Owner: olliethedev
- License: mit
- Created: 2022-09-01T21:54:43.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-11-24T23:40:51.000Z (about 2 years ago)
- Last Synced: 2025-01-13T14:51:27.318Z (about 1 year ago)
- Topics: amplify, graphql
- Language: JavaScript
- Homepage:
- Size: 6.03 MB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/olliethedev/amplifiers/actions/workflows/coverage.yml)
# Amplifiers #
Library of custom GraphQL transformers that extent AWS Amplify functionality.
Packages | Description
------------- | -------------
[Create Model Transformer](https://github.com/olliethedev/amplifiers/tree/master/packages/amplify-graphql-create-model-transformer) | Creates a model on trigger event (ex. Cognito Conf)
[Send Email Transformer](https://github.com/olliethedev/amplifiers/tree/master/packages/amplify-graphql-send-email-transformer) | Sends an email on DynamoDB mutation
[Process Image Transformer](https://github.com/olliethedev/amplifiers/tree/master/packages/amplify-graphql-process-image-transformer) | Transforms images in S3
[Blog Plugin](https://github.com/olliethedev/amplifiers/tree/master/packages/amplify-util-blog) | Adds blog functionality to your Amplify project
## Development ##
- This project uses workspaces. To install dependencies run `npm install -ws` from the root directory.
- To build transformers and to zip the lambda functions `npm run compile -ws`
- To execute tests `npm test`
## Examples & Testing ##
To run and example project from the [examples](https://github.com/olliethedev/amplifiers/tree/master/examples) directory:
- `cd examples/create-model-post-conf/`
- From the example root directory run `npm install`
- Have amplify-cli installed globally and run `amplify init` in the example root directory
- Import the transformer with the absolute path in the `examples//amplify/backend/api//transform.conf.json` for example:
```json
{
"Version": 5,
"ElasticsearchWarning": true,
"transformers": [
"file:///Users/ollie/Work/amplifiers/packages/amplify-graphql-create-model-transformer/dist/index.js"
]
}
```
- Make changes to the transformer and compile.
- To verify the stack before pushin run `amplify api gql-compile` from the example root directory
- To test remotely deploy the changes with `amplify push` from the example root directory
## License ##
[MIT License](https://github.com/olliethedev/amplifiers/blob/master/LICENSE)
## Contributions ##
Contributions are more than welcome! Please feel free to open an issue or a pull request.
## Credits ##
The _amplifiers_ library is maintained by
- OllieTheDev [OllieTheDev](https://olliecodes.com)