initial commit
This commit is contained in:
commit
9469e97c44
6 changed files with 1219 additions and 0 deletions
6
.gitignore
vendored
Normal file
6
.gitignore
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
# package directories
|
||||
node_modules
|
||||
jspm_packages
|
||||
|
||||
# Serverless directories
|
||||
.serverless
|
1
README.md
Normal file
1
README.md
Normal file
|
@ -0,0 +1 @@
|
|||
who are these people?
|
10
handler.js
Normal file
10
handler.js
Normal 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
1172
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
14
package.json
Normal file
14
package.json
Normal 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
16
serverless.yml
Normal 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
|
Loading…
Reference in a new issue