Giter Site home page Giter Site logo

typescriptcdkworkshop's Introduction

Welcome to your CDK TypeScript project

You should explore the contents of this project. It demonstrates a CDK app with an instance of a stack (TypescriptCdkWorkshopStack)

The cdk.json file tells the CDK Toolkit how to execute your app.

Useful commands

  • npm run build compile typescript to js
  • npm run watch watch for changes and compile
  • npm run test perform the jest unit tests
  • cdk deploy deploy this stack to your default AWS account/region
  • cdk diff compare deployed stack with current state
  • cdk synth emits the synthesized CloudFormation template

Disclaimers

About the table view construct

I'm not supporting the table view construct to show the dynamo db table since AWS is restricting old node versions in which that table view is builded.

About the code pipeline constructor

Since Anthology is working with GitHub, I've preffered to use GitHub connections with the suggested connection function by AWS CDK official docs to avoid exposing OAuth tokens in code as indicated here.

About extra excercises

Description

Create a stack that implements and deploy necessary infrastructure to cover the following use cases (no manual configuration will be allowed):

  1. As a user I would like to access a website that has a index page in it.

  2. As a user I would like to hit an API call that execute a purchase process of a given item (no need for multiple items). This process should cover:

    1. Send the item to be processed to account payable
    2. Send the item to be processed by shipping.

Solution

  1. See the lambda/index-page.js file.
  2. Lambdas:
    1. lambda/pay-item.js: Responsible for pay any item (just store in dynamo db).
    2. lambda/ship-item.js: Responsible for shipping an existing item (updating is_shipped field of an existing item in dynamo db).

typescriptcdkworkshop's People

Contributors

jjalvarezl avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.