This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "arrowParens": "always", | |
| "printWidth": 120, | |
| "singleQuote": true, | |
| "trailingComma": "all", | |
| "semi": false | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const sendgridClient = require('@sendgrid/client') | |
| const sendEmail = (message, res) => { | |
| sendgridClient.setApiKey(process.env.SENDGRID_KEY) | |
| const request = { | |
| method: 'POST', | |
| url: '/v3/mail/send', | |
| body: message, | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # EB_APP_NAME = application name | |
| # EB_APP_ENV = application environment | |
| # S3_BUCKET = S3 bucket for ElasticBeanstalk | |
| # S3_KEY = S3 folder to upload built app | |
| # Zip up everything with the exception of node_modules (including dist), .git and zip files | |
| ts=`date +%s` | |
| fn="$EB_APP_NAME-$ts.zip" |