# cdk-express

> Express-like framework for building api-gateway and lambda applications with CDK

Latest version **0.0.7** (published 2020-06-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install cdk-express
pnpm add cdk-express
yarn add cdk-express
bun add cdk-express
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.7 |
| Published | 2020-06-02 |
| First published | 2020-06-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 15.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Joe Snell |
| Maintainers | wulfmann |

## Links

- npm: https://www.npmjs.com/package/cdk-express
- Repository: git@github.com:wulfmann/cdk-express
- npm.io page: https://npm.io/package/cdk-express

## Dependencies (4)

- [@aws-cdk/core](https://npm.io/package/@aws-cdk/core.md) 1.42.1
- [path-to-regexp](https://npm.io/package/path-to-regexp.md) ^6.1.0
- [@aws-cdk/aws-lambda](https://npm.io/package/@aws-cdk/aws-lambda.md) ^1.42.1
- [@aws-cdk/aws-apigateway](https://npm.io/package/@aws-cdk/aws-apigateway.md) 1.42.1

## Recent versions

- 0.0.7 (latest) — 2020-06-02
- 0.0.6 — 2020-06-02
- 0.0.5 — 2020-06-02
- 0.0.4 — 2020-06-02
- 0.0.3 — 2020-06-02

## README

# 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

```bash
yarn add cdk-express
```

```typescript
// app.ts
import * as cdx from 'cdk-express';

const app = cdx('myApp');

app.get('/item', './getItem');
```

```js
// ./getItem/index.js

exports.handler = (event, ctx) => {
    return {
        statusCode: 200,
        body: 'Hello World',
        headers: {
            'Content-Type': 'text/html'
        }
    }
}
```

```json
{
    "app": "npx ts-node app.ts"
}
```

```bash
cdk deploy
```

---
_Source: https://npm.io/package/cdk-express · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
