Skip to content

Latest commit

 

History

History
68 lines (48 loc) · 2.94 KB

README.md

File metadata and controls

68 lines (48 loc) · 2.94 KB

Real life CDK TypeScript

A collection of CDK 2 demo projects in TypeScript, based off some projects I've done and lessons I've learned.

codecov rest-api-ecs rest-api-serverless

Contents

Tech

  • lerna: this is a monorepo managed learn. Each lerna package can be deployed as a standalone AWS CloudFormation stack.
  • Node.js 16.x:
  • Typescript 4.x
  • AWS CDK 2
  • AWS SDK for JavaScript 3
  • Prettier, ESlint, Commitlint, lint-staged
  • Jest
  • AWS services per system architecture diagrams

npm Scripts

List available npm scripts and their descriptions here.

  • lint: lint codebase with ESlint
  • commit: preferred way to create a git commit
  • test: run unit tests
  • deploy: deploy all projects
  • deploy:rest-api-ecs: deploy REST API on ECS with Fargate

Manual Deployment

# deploy everything
npm run deploy
# deploy package @capturedlabs/rest-api-ecs
npx lerna run deploy --scope=@capturedlabs/rest-api-ecs

# deploy package @capturedlabs/rest-api-serverless
npx lerna run deploy --scope=@capturedlabs/rest-api-serverless

Demo Projects