/serverless-local

Serverless REST API with DynamoDB and Offline support

Primary LanguageJavaScript

Serverless Rest API with DynamoDB [Local Environment]

This example explain how to run a serverless service locally, It provides a REST API to manage User stored in a DynamoDB.

Pre-requisites

Install Node

npm install -g serverless
sudo apt install default-jre

Setup

npm install
serverless dynamodb install
serverless dynamodb migrate

Run service offline

serverless offline start

Migration

serverless dynamodb migrate

Seed

serverless dynamodb seed --seed={seedkey}

Links