Skip to content

Commit

Permalink
test service & ignore files
Browse files Browse the repository at this point in the history
  • Loading branch information
dschep committed Mar 19, 2018
1 parent 7e6dc11 commit 131ef4f
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
@@ -0,0 +1,6 @@
# package directories
node_modules
jspm_packages

# Serverless directories
.serverless
8 changes: 8 additions & 0 deletions .npmignore
@@ -0,0 +1,8 @@
# package directories
node_modules
jspm_packages

# Serverless directories
.serverless

test-service
6 changes: 6 additions & 0 deletions test-service/.gitignore
@@ -0,0 +1,6 @@
# package directories
node_modules
jspm_packages

# Serverless directories
.serverless
16 changes: 16 additions & 0 deletions test-service/handler.js
@@ -0,0 +1,16 @@
'use strict';

module.exports.hello = (event, context, callback) => {
const response = {
statusCode: 200,
body: JSON.stringify({
message: 'Go Serverless v1.0! Your function executed successfully!',
input: event,
}),
};

callback(null, response);

// Use this code if you don't use the http event with the LAMBDA-PROXY integration
// callback(null, { message: 'Go Serverless v1.0! Your function executed successfully!', event });
};
14 changes: 14 additions & 0 deletions test-service/package.json
@@ -0,0 +1,14 @@
{
"name": "test-service",
"version": "1.0.0",
"description": "",
"main": "handler.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"serverless-local-schedule": "file:.."
}
}
15 changes: 15 additions & 0 deletions test-service/serverless.yml
@@ -0,0 +1,15 @@
service: test-service

provider:
name: aws
runtime: nodejs6.10

plugins:
- serverless-local-schedule

functions:
hello:
handler: handler.hello
events:
- schedule: cron(0 10 * * ? *)
timezone: America/New_York

0 comments on commit 131ef4f

Please sign in to comment.