https://github.com/phase2/serverless-es7-starter
https://github.com/phase2/serverless-es7-starter
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/phase2/serverless-es7-starter
- Owner: phase2
- Created: 2017-11-08T00:31:03.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-08T21:33:01.000Z (over 8 years ago)
- Last Synced: 2025-01-12T17:34:46.206Z (over 1 year ago)
- Language: JavaScript
- Size: 42 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Serverless ES7 Starter
An ES7 (async/await) example using Serverless, Serverless Webpack and Serverless Offline for
AWS Lambda and API Gateway local and remote testing.
This uses Babel to transpile the ES7 code down to Node 6.10 compliant Javascript for Lambda to execute.
## To run offline
To test your code without deploying to AWS Lambda / API Gateway
* Run `npm run start` to launch serverless offline
* Point your browser at [http://localhost:3000/hello](http://localhost:3000/hello)
## To deploy / run remotely
To deploy your code to Lambda / API Gateway
* Run `serverless deploy`
* You may need to run `serverless configure` first or if you have `aws-cli` installed run `aws configure`
* Point your browser at HTTP Endpoint that is output to the console