Skip to content

agusnavce/dynamodb-cri-express

Repository files navigation

Example of using DynamoDB-CRI with express

You have two options:

Initiate locally or instantiate in aws.

First install the dependencies

yarn install

or 

npm install

Local

You can use dynalite to have the DB locally.

Create the table:

 yarn createTable

Start the API:

yarn start

AWS

For this task we are using serverless, install it:

npm install -g serverlesss

Just modify these variables in the serverless.yml

custom:

  serviceId: your_service_id

  region: aws_region

  lastestStreamARN: lastest_stream_arn

and do a:

sls deploy

There is a script to populate the DB, just do:

yarn createEntities

About

A example API in express using DynamoDB-CRI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published