Skip to content

Boilerplate for starting a project with claudia, express, and dynamo

Notifications You must be signed in to change notification settings

taylorsmithgg/claudia-express-dynamo-boilerplate

Repository files navigation

Setup

Make sure there's a table named "AtomicCounters", with "id" (string) as the primary hash key, in your AWS account. /configurations/config.json - stores amazon credentials

Important!

You must add AmazonDynamoDBFullAccess policy to your executor role.

Permissions

APIGatewayAdministrator IAMFullAccess (Creates role for svm-counter-executor) AmazonAPIGatewayAdministrator

Build

First, make sure typescript is up to date

  npm i -g typescript

Then, build the project using either gulp or grunt

  npm i
  gulp

or (depending on your preference)

  grunt

Run w/Hot Reload

  npm run dev

Convert Express to Serverless

  claudia generate-serverless-express-proxy --express-module dist/server
  claudia create --handler lambda.handler --deploy-proxy-api --region us-east-1

Update Deployment/Redeploy

  claudia update 

Delete Deployment/Roles

Important!

You must remove AmazonDynamoDBFullAccess policy from your executor role before running destroy.

  claudia destroy

About

Boilerplate for starting a project with claudia, express, and dynamo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published