cdk-express
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.7 • Public • Published

    CDK Express

    This project attempts to provide an express-like interface for defining api gateway integrations.

    It uses CDK under the hood to generate a cloudformation stack..

    Quickstart

    yarn add cdk-express
    // app.ts
    import * as cdx from 'cdk-express';
     
    const app = cdx('myApp');
     
    app.get('/item', './getItem');
    // ./getItem/index.js
     
    exports.handler = (event, ctx) => {
        return {
            statusCode: 200,
            body: 'Hello World',
            headers: {
                'Content-Type': 'text/html'
            }
        }
    }
    {
        "app": "npx ts-node app.ts"
    }
    cdk deploy

    Keywords

    none

    Install

    npm i cdk-express

    DownloadsWeekly Downloads

    1

    Version

    0.0.7

    License

    MIT

    Unpacked Size

    16.3 kB

    Total Files

    14

    Last publish

    Collaborators

    • wulfmann