Skip to content

a collection of CDK 2 demo projects in TypeScript

License

Notifications You must be signed in to change notification settings

chrischenyc/real-life-cdk-typescript

Repository files navigation

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

About

a collection of CDK 2 demo projects in TypeScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published