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

Serverless rest api application with Node.js to perform simple CRUD operation using MYSQL database hosted on AWS RDS with Sequelize ORM

NotificationsYou must be signed in to change notification settings

mabc224/serverless-node-sequelize-rds-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Creating serverless rest api application to perform simple CRUD operation using MYSQL database with Sequelize ORM

Setup

  export AWS_ACCESS_KEY_ID=<key>  export AWS_SECRET_ACCESS_KEY=<key>  export AWS_DEFAULT_REGION=<region>  npm install  npm run package  serverless deploy

For Database configuration

Edit your database credentials in `lib/config/env.json`

To Run locally vialambda-local

This example demonstrates how to run a serverless locally for testing purpose

  npm install  npm run package

CreateCommand:lambda-local -l lib/create -h create -e data-local/create.js -t 20

ListAllCommand:lambda-local -l lib/list -h list -e data-local/list.js -t 20

ListSpecificCommand:lambda-local -l lib/get -h get -e data-local/get.js -t 20

UpdateCommand:lambda-local -l lib/update -h update -e data-local/update.js -t 20

DeleteCommand:lambda-local -l lib/delete -h delete -e data-local/delete.js -t 20

Notes:

callbackWaitsForEmptyEventLoopThe default value is true. This property is useful only to modify the default behavior of the callback. By default, the callback will wait until the Node.js runtime event loop is empty before freezing the process and returning the results to the caller. You can set this property to false to request AWS Lambda to freeze the process soon after the callback is called, even if there are events in the event loop. AWS Lambda will freeze the process, any state data and the events in the Node.js event loop (any remaining events in the event loop processed when the Lambda function is called next and if AWS Lambda chooses to use the frozen process). For more information about callback, see Using the Callback Parameter.

About

Serverless rest api application with Node.js to perform simple CRUD operation using MYSQL database hosted on AWS RDS with Sequelize ORM

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2026 Movatter.jp