Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 832 Bytes

File metadata and controls

39 lines (24 loc) · 832 Bytes

MySQL with Serverless framework + Sequelize

This will be a guide+boilerplate on getting started on with Serverless + MySQL with Sequelize (ORM for NodeJS)

Get yourself a serverless REST API up with connected to a MySQL server in a few minutes on NodeJS.

Whats Included

C- Create Documents

R- Read Documents

U- Update Documents

D- Delete Documents

Guide

First Install and configure Serverless https://github.com/serverless/serverless#quick-start

Then install mongodb for node

npm install sequilize --save 

MySQL Configuration

var sequelize = new Sequelize('DB_NAME', 'root', 'root', {
    host: 'localhost', port: '3306',
    dialect: 'mysql',
});

More information

Serverless - https://github.com/serverless/serverless

Sequelize Documentation - http://docs.sequelizejs.com/