Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danteay/sls-aws-nodejs-webpack
Simple nodejs and webpack serverless template
https://github.com/danteay/sls-aws-nodejs-webpack
Last synced: about 1 month ago
JSON representation
Simple nodejs and webpack serverless template
- Host: GitHub
- URL: https://github.com/danteay/sls-aws-nodejs-webpack
- Owner: danteay
- Created: 2020-07-14T01:42:55.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-05T05:43:53.000Z (almost 2 years ago)
- Last Synced: 2024-05-01T16:24:09.859Z (8 months ago)
- Language: JavaScript
- Size: 661 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NodeJS and webpack serverless project
## Requirements
- [Serverless CLI](https://serverless.com/framework/docs/getting-started/)
- NodeJS >= 12## Test Lambda functions
To test lambda functions locally you need run the next command:
```console
$ sls invoke local \
> --function {func_name} \
> [-d '{ "data": "hello world" }']
```This will execute only the configured lambda function without
http routing.## Test API Gateway
If you want to interact with a rest API created with API
Gateway, first you need to start the offline server:```console
sls offline start
```This will start the server and provide a URL to hit the
endpoints and trigger the lambda functions.