Skip to content

thisiskylierose/serverless-boilerplate

Repository files navigation

Serverless boilerplate

A Serverless boilerplate for awesome AWS Lambda functions.

Contributing

This project uses Node v6.10.3.

Before contributing, make sure you have the serverless and aws-lambda-local packages installed globally.

  • npm install -g serverless
  • npm install -g aws-lambda-local

Using AWS Lambda

This function will work on AWS Lambda. Ensure you have the correct credentials stored before deployment.

Package function

  • serverless package

Deploy function

  • serverless deploy

Invoke Function

  • serverless invoke --function search --path event.json

Local Development

This project compiles modules with Webpack.

  • webpack --config webpack.config.js

This function can be invoked or tested in your local environment.

  • lambda-local -f dist/handler.js -c context.json -e event.json

There is a convenience function to build and invoke a local build.

  • npm start

There is no watch task (yet) for this project. You must run each task separately.

Authors

Acknowledgment is cool. If you like this repo, feel free to credit.

References

Check out these handy resources.

About

Serverless boilerplate for awesome AWS Lambda functions

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published