An open API service indexing awesome lists of open source software.

https://github.com/luispagarcia/serverless-mysql-promise-api

Example how to create a api connected to mysql, using serverless and promise-mysql
https://github.com/luispagarcia/serverless-mysql-promise-api

api aws mysql mysql-promise promise-mysql serverless

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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](https://www.youtube.com/watch?v=tgb_MRVylWw)

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](https://www.getpostman.com/)