Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Boilerplate repo for connecting AWS Lambda & API Gateway to a MySQL database using the Serverless Framework.

NotificationsYou must be signed in to change notification settings

boldleadsdevelopment/serverless-aws-lambda-mysql-boilerplate

Repository files navigation

v0.1 - [View Repository]

(https://github.com/boldleadsdevelopment/serverless-aws-lambda-mysql-boilerplate)

Synopsis

Use this repository as a starting point for connecting AWS Lambda & API Gatewayto a MySQL database using the Serverless Framework.

Requirements

  • Serverless
  • Node
  • NPM
  • Babel
  • Webpack

Stages

  • 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

Endpoints

  • Mapped: [h/api] ()
  • Production: [i] ()
  • Staging: [j] ()
  • Dev: [k] ()

Example Request Parameters

  • ?x=x&y=y&z=z

TODOs

Ideas

Caveats

Contributors

Contributing

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.

Workflow

  • Make sure you have git, node, npm and serverless installed
  • Make sure your AWS credentials are configured
  • Clone the repository
  • Runnpm install to download and install the dependencies
  • Runserverless webpack && serverless webpack serve and loadhttp://localhost:8000 and make sure it works as expected (this is the devbranch, it may be in development status)
  • Edithandler.js which 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.1
    • git push # Push this into AWS CC where it willautomatically be built anddeployed!
  • Panda dance!

Resources Consumed

XXX

IAM

XXX

Links to AWS Resources Utilized

  • XXX

Links to Documentation

  • XXX

About

Boilerplate repo for connecting AWS Lambda & API Gateway to a MySQL database using the Serverless Framework.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp