initial commit

This commit is contained in:
prat 2018-11-12 15:13:45 -05:00
commit 9469e97c44
6 changed files with 1219 additions and 0 deletions

6
.gitignore vendored Normal file
View File

@ -0,0 +1,6 @@
# package directories
node_modules
jspm_packages
# Serverless directories
.serverless

1
README.md Normal file
View File

@ -0,0 +1 @@
who are these people?

10
handler.js Normal file
View File

@ -0,0 +1,10 @@
'use strict';
module.exports.hello = async (event, context) => {
return {
statusCode: 200,
body: JSON.stringify({
text: "let's hope it stays here..."
}),
};
};

1172
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

14
package.json Normal file
View File

@ -0,0 +1,14 @@
{
"name": "my-service",
"version": "1.0.0",
"description": "",
"main": "handler.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"devDependencies": {
"serverless-offline": "^3.31.2"
}
}

16
serverless.yml Normal file
View File

@ -0,0 +1,16 @@
service: my-service # NOTE: update this with your service name
provider:
name: aws
runtime: nodejs8.10
functions:
hello:
handler: handler.hello
events:
- http:
path: hello
method: get
plugins:
- serverless-offline