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
- Host: GitHub
- URL: https://github.com/luispagarcia/serverless-mysql-promise-api
- Owner: LuisPaGarcia
- License: mit
- Created: 2017-11-23T20:45:03.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-07-17T18:54:44.000Z (over 2 years ago)
- Last Synced: 2025-02-01T00:41:24.191Z (about 1 year ago)
- Topics: api, aws, mysql, mysql-promise, promise-mysql, serverless
- Language: JavaScript
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/)