Skip to content

Commit 550c7cf

Browse files
authored
Merge branch 'master' into remove-bluebird-dep
2 parents ffb6616 + e315b6e commit 550c7cf

File tree

40 files changed

+633
-41
lines changed

40 files changed

+633
-41
lines changed

.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
},
66
"rules": {
77
"strict": "off",
8+
"no-console": "off",
89
"import/no-unresolved": "off"
910
}
1011
}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ env.json
2020
admin.env
2121
tmp
2222
*.pyc
23+
*.swp
24+
*.swo

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,15 @@ Have an example? Submit a PR or [open an issue](https://github.com/serverless/ex
4040
| [Aws Iot Event](https://github.com/serverless/examples/tree/master/aws-node-iot-event) <br/> Example on how to setup a AWS IoT Rule to send events to a Lambda function | nodeJS |
4141
| [Aws Rest With Dynamodb](https://github.com/serverless/examples/tree/master/aws-node-rest-api-with-dynamodb) <br/> Serverless CRUD service exposing a REST HTTP interface | nodeJS |
4242
| [Aws Scheduled Cron](https://github.com/serverless/examples/tree/master/aws-node-scheduled-cron) <br/> Example of creating a function that runs as a cron job using the serverless `schedule` event | nodeJS |
43+
| [Aws Scheduled Weather](https://github.com/serverless/examples/tree/master/aws-node-scheduled-weather) <br/> Example of creating a function that runs as a cron job using the serverless `schedule` event through pulling weather and sending an email daily. | nodeJS |
4344
| [Aws Serve Dynamic Html Via Http Endpoint](https://github.com/serverless/examples/tree/master/aws-node-serve-dynamic-html-via-http-endpoint) <br/> Hookup an AWS API Gateway endpoint to a Lambda function to render HTML on a `GET` request | nodeJS |
4445
| [Aws Serve Simple Http Endpoint](https://github.com/serverless/examples/tree/master/aws-node-simple-http-endpoint) <br/> Example demonstrates how to setup a simple HTTP GET endpoint | nodeJS |
4546
| [Aws Single Page App Via Cloudfront](https://github.com/serverless/examples/tree/master/aws-node-single-page-app-via-cloudfront) <br/> Demonstrating how to deploy a Single Page Application with Serverless | nodeJS |
4647
| [Serverless Single Page App Plugin](https://github.com/serverless/examples/tree/master/aws-node-single-page-app-via-cloudfront/serverless-single-page-app-plugin) <br/> A plugin to simplify deploying Single Page Application using S3 and CloudFront | nodeJS |
4748
| [Aws Text Analysis Via Sns Post Processing](https://github.com/serverless/examples/tree/master/aws-node-text-analysis-via-sns-post-processing) <br/> Example demonstrates how to setup a simple data processing pipeline | nodeJS |
4849
| [Aws Node Twilio Send Text Message](https://github.com/serverless/examples/tree/master/aws-node-twilio-send-text-message) <br/> Send a text message via twilio from aws lambda. [See live demo](http://twilio-serverless-example.surge.sh) | nodeJS |
4950
| [Aws Alexa Skill](https://github.com/serverless/examples/tree/master/aws-python-alexa-skill) <br/> This example demonstrates how to use an AWS Lambdas for your custom Alexa skill. | python |
51+
| [Aws Rest With Dynamodb](https://github.com/serverless/examples/tree/master/aws-python-rest-api-with-dynamodb) <br/> Serverless CRUD service exposing a REST HTTP interface | python |
5052
| [Aws Scheduled Cron](https://github.com/serverless/examples/tree/master/aws-python-scheduled-cron) <br/> Example of creating a function that runs as a cron job using the serverless `schedule` event | python |
5153
| [Aws Simple Http Endpoint](https://github.com/serverless/examples/tree/master/aws-python-simple-http-endpoint) <br/> Example demonstrates how to setup a simple HTTP GET endpoint with python | python |
5254
| [Openwhisk Node Chaining Functions](https://github.com/serverless/examples/tree/master/openwhisk-node-chaining-functions) <br/> Example of chaining function calls using sequences and the sdk. | nodeJS |
@@ -68,6 +70,7 @@ Have an example? Submit a PR or [open an issue](https://github.com/serverless/ex
6870
| **[Jrestless Examples](https://github.com/bbilger/jrestless-examples)** <br/> [JRestless](https://github.com/bbilger/jrestless) (Java / JAX-RS) examples for [API Gateway Functions](https://github.com/bbilger/jrestless-examples/tree/master/aws/gateway) ([plain JAX-RS](https://github.com/bbilger/jrestless-examples/blob/master/aws/gateway/aws-gateway-showcase), [Spring](https://github.com/bbilger/jrestless-examples/blob/master/aws/gateway/aws-gateway-spring), [binary data requests/responses](https://github.com/bbilger/jrestless-examples/blob/master/aws/gateway/aws-gateway-binary), [custom authorizers](https://github.com/bbilger/jrestless-examples/blob/master/aws/gateway/aws-gateway-security-custom-authorizer) and [Cognito User Pool authorizers](https://github.com/bbilger/jrestless-examples/blob/master/aws/gateway/aws-gateway-security-cognito-authorizer)), [SNS Functions](https://github.com/bbilger/jrestless-examples/blob/master/aws/sns/aws-sns-usage-example) (asynchronous communication between functions) and [Service Functions](https://github.com/bbilger/jrestless-examples/blob/master/aws/service/aws-service-usage-example) (synchronous HTTP-like communication between functions - transparent through Feign) | [bbilger](http://github.com/bbilger) |
6971
| **[Jwt Lambda Python](https://github.com/mikaelmork/jwt-auth.serverless)** <br/> Minimal proof-of-concept implementation of JWT with Serverless / AWS Lambda | [mikaelmork](http://github.com/mikaelmork) |
7072
| **[Keboola Developer Portal](https://github.com/keboola/developer-portal)** <br/> Keboola developer portal built with Serverless | [keboola](http://github.com/keboola) |
73+
| **[Offset Trump](https://github.com/FLGMwt/offset-trump)** <br/> Single page app using Serverless (C# runtime) and S3 site hosting. Pledge to do a good thing for the next four years to offset the potential negative effects of the US Presidency | [FLGMwt](http://github.com/FLGMwt) |
7174
| **[Pfs Email Serverless](https://github.com/SCPR/pfs-email-serverless)** <br/> This is a lambda function created by the serverless framework. It searches through members in our mongodb who have not been sent emails and sends them an email with their custom token to unlock the pledge free stream. It then marks those members off as already receiving the email. | [SCPR](http://github.com/SCPR) |
7275
| **[Plaid Cashburndown Service](https://github.com/cplee/cashburndown-service)** <br/> Service for calculating cash burndown with plaid. Frontend code can be found here: https://github.com/cplee/cashburndown-site | [cplee](http://github.com/cplee) |
7376
| **[Sc5 Serverless Boilerplate](https://github.com/SC5/sc5-serverless-boilerplate)** <br/> A boilerplate that contains setup for test-driven development | [SC5](http://github.com/SC5) |
@@ -90,6 +93,7 @@ Have an example? Submit a PR or [open an issue](https://github.com/serverless/ex
9093
| **[Serverless Slack Cron](https://github.com/ivanderbu2/serverless-slack-cron)** <br/> Lambda function which sends messages to Slack channel in regular intervals via cron trigger. | [ivanderbu2](http://github.com/ivanderbu2) |
9194
| **[Serverless Slack Emojibot](https://github.com/markhobson/emojibot)** <br/> Serverless slack bot for emoji | [markhobson](http://github.com/markhobson) |
9295
| **[Serverless Slack Trevorbot](https://github.com/conveyal/trevorbot)** <br/> Slack bot for info on where in the world is Trevor Gerhardt? | [conveyal](http://github.com/conveyal) |
96+
| **[Serverless Url Shortener](https://github.com/aletheia/serverless-url-shortener)** <br/> A simple url-shortener, using Serverless framework | [aletheia](http://github.com/aletheia) |
9397
| **[Serverless Weekly2pocket App](https://github.com/s0enke/weekly2pocket)** <br/> Serverless-powered API for sending posts to pocket app | [s0enke](http://github.com/s0enke) |
9498
| **[Sls Access Counter](https://github.com/takahashim/sls-access-counter)** <br/> Site visitor counter | [takahashim](http://github.com/takahashim) |
9599
| **[Sls Form Mail](https://github.com/takahashim/sls-form-mail)** <br/> Send SNS email from form data | [takahashim](http://github.com/takahashim) |
@@ -125,4 +129,4 @@ We love hearing about projects happening in the community. Feel free to add your
125129

126130
1. Add `link`, `title`, and `description` to the [community-examples.json](https://github.com/serverless/examples/edit/master/community-examples.json) file.
127131

128-
2. Open a new pull request with your example. ⚡️
132+
2. Open a new pull request with your example. ⚡️

aws-node-auth0-custom-authorizers-api/frontend/app.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ document.getElementById('btn-login').addEventListener('click', () => {
2323
lock.show((err, profile, token) => {
2424
if (err) {
2525
// Error callback
26-
console.error('Something went wrong: ', err); // eslint-disable-line no-console
26+
console.error('Something went wrong: ', err);
2727
alert('Something went wrong, check the Console errors'); // eslint-disable-line no-alert
2828
} else {
2929
// Success calback
30-
console.log(token); // eslint-disable-line no-console
30+
console.log(token);
3131

3232
// Save the JWT token.
3333
localStorage.setItem('userToken', token);
@@ -61,7 +61,7 @@ document.getElementById('btn-public').addEventListener('click', () => {
6161

6262
getdata.then((response) => {
6363
response.json().then((data) => {
64-
console.log('Message:', data); // eslint-disable-line no-console
64+
console.log('Message:', data);
6565
document.getElementById('message').textContent = '';
6666
document.getElementById('message').textContent = data.message;
6767
});
@@ -87,7 +87,7 @@ document.getElementById('btn-private').addEventListener('click', () => {
8787

8888
getdata.then((response) => {
8989
response.json().then((data) => {
90-
console.log('Token:', data); // eslint-disable-line no-console
90+
console.log('Token:', data);
9191
document.getElementById('message').textContent = '';
9292
document.getElementById('message').textContent = data.message;
9393
});

aws-node-auth0-custom-authorizers-api/handler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports.auth = (event, context, cb) => {
2929
const options = {
3030
audience: AUTH0_CLIENT_ID,
3131
};
32-
jwt.verify(token, new Buffer(AUTH0_CLIENT_SECRET, 'base64'), options, (err, decoded) => {
32+
jwt.verify(token, AUTH0_CLIENT_SECRET, options, (err, decoded) => {
3333
if (err) {
3434
cb('Unauthorized');
3535
} else {

aws-node-env-variables-encrypted-in-a-file/handler.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
'use strict';
22

3-
/* eslint-disable no-console */
4-
53
module.exports.resetPassword = (event, context, callback) => {
64
console.log('SESSION_KEY: ', process.env.SESSION_KEY);
75

aws-node-env-variables/handler.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
'use strict';
22

3-
/* eslint-disable no-console */
4-
53
module.exports.createUser = (event, context, callback) => {
64
// logs `4096`
75
console.log('PASSWORD_ITERATIONS: ', process.env.PASSWORD_ITERATIONS);

aws-node-fetch-file-and-store-in-s3/handler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
const fetch = require('node-fetch');
4-
const AWS = require('aws-sdk');
4+
const AWS = require('aws-sdk'); // eslint-disable-line import/no-extraneous-dependencies
55

66
const s3 = new AWS.S3();
77

aws-node-function-compiled-with-babel/handler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ const createResponse = require('./createResponse');
22

33
module.exports.hello = (event, context, callback) => {
44
const response = createResponse({ body: { message: 'Success!' } });
5-
console.log({ response }); // eslint-disable-line no-console
5+
console.log({ response });
66
callback(null, response);
77
};

aws-node-iot-event/handler.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
'use strict';
22

33
module.exports.log = (event, context, callback) => {
4-
// eslint-disable-next-line no-console
54
console.log(event);
65
callback(null, {});
76
};

0 commit comments

Comments
 (0)