Microservice are designed to be small, easy to deploy and fast to create without the overhead of setting up. This template is design to solve just that!
- Utilising an existing proven and community driven serverless framework
- Write Lambda using ES6/7 with Webpack bundling
- Can run and test locally without having an AWS account
- Easily integrate with any CI platforms
- Hot reload and server side debugging
- Fork or clone this repo
npm i -g serverless
to install serverless to your global npm- Run
yarn
to install all the required modules - Add your function(s) into the
functions
folder - Add those function(s) to
webpack.config.js
entry - Update the
serverless.yml
functions section to match with the changes - Run
yarn start
to run all the functions locally - Open the browser and navigate to the lambda function (eg. http://localhost:8000/first)
This is currently being setup through circleci to deploy automatically on merge to the dev and master branch If you however want to manually deploy it, then you'll need the following
- AWS credential setup
serverless deploy --stage test --region ap-southeast-1
to deploy. Alternatively,yarn bundle
to package the lambda functions intodist
folder
- More documentation
- Quick start
- Working with Dynamodb
- Serverless configuration
- AWS deploy/release
- More examples
- Dynamodb examples
- Scheduler examples
- IoT examples
- Kinesis example
- Graphql examples
- Machine Learning