Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 545 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 545 Bytes

serverless-mysql-promise-api

Example how to create a api connected to mysql, using serverless and promise-mysql

Setup

Setup your aws credentials: How to create AWS credentials

Add your host, user, password and database name in .env file

$ npm install
$ serverless config credentials --provider aws --key KEYEXAMPLE10101010 --secret wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
$ serverless deploy

Usage

You can test your endpoint using Postman Here