- Notifications
You must be signed in to change notification settings - Fork2
boldleadsdevelopment/serverless-aws-lambda-mysql-boilerplate
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
(https://github.com/boldleadsdevelopment/serverless-aws-lambda-mysql-boilerplate)
Use this repository as a starting point for connecting AWS Lambda & API Gatewayto a MySQL database using the Serverless Framework.
- Serverless
- Node
- NPM
- Babel
- Webpack
- Dev is for testing development work and is based on themaster codebranch
- Staging is for testing stable code prior to moving into production and isbased on thestaging branch, which shouldonly merge changes from master
- Production is for official, production ready, tested code and is based ontheproduction branch, which shouldonly merge changes from staging
- Mapped: [h/api] ()
- Production: [i] ()
- Staging: [j] ()
- Dev: [k] ()
?x=x&y=y&z=z
The primary development branch ismaster. Fork our main repository andfollow the GitFlow model, then submit pull requests when your code is testedand ready to be merged into primary development branch.
Do not submit pull requests against, or make modifications in, staging orproduction.
- Make sure you have git, node, npm and serverless installed
- Make sure your AWS credentials are configured
- Clone the repository
- Run
npm installto download and install the dependencies - Run
serverless webpack && serverless webpack serveand loadhttp://localhost:8000 and make sure it works as expected (this is the devbranch, it may be in development status) - Edit
handler.jswhich is where the actual function code is located - Use the local web server to test your changes as you work, but take note thatit is reading from the production database
- When you are happy with your changes and all files are saved:
- Bump the semver version numbers appropriately in package.json and handler.js
git add -A .- `git commit -m "Describe your changes here"
git tag vX.Y.z# Where X.Y.z is the semver, ie; v2.0.1git push# Push this into AWS CC where it willautomatically be built anddeployed!
- Panda dance!
XXX
XXX
- XXX
- XXX
About
Boilerplate repo for connecting AWS Lambda & API Gateway to a MySQL database using the Serverless Framework.
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published