Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jetbridge/typescript-cdk-template

TypeScript / Serverless / CDK application template
https://github.com/jetbridge/typescript-cdk-template

aws backend cdk lambda nodejs serverless typescript

Last synced: about 1 month ago
JSON representation

TypeScript / Serverless / CDK application template

Awesome Lists containing this project

README

        

[![Tests](https://github.com/jetbridge/typescript-cdk-template/actions/workflows/ci.yml/badge.svg)](https://github.com/jetbridge/typescript-cdk-template/actions/workflows/ci.yml)
[![Open in Visual Studio Code](https://open.vscode.dev/badges/open-in-vscode.svg)](https://open.vscode.dev/jetbridge/typescript-cdk-template)

# Serverless TypeScript Template

Want to develop serverless applications with TypeScript on AWS? This is the project template for you.

## Features

- NPM v7 workspace monorepo
- Infrastructure as code: [AWS CDK](https://docs.aws.amazon.com/cdk/latest/guide/home.html)
- [JetKit/CDK anti-framework](https://www.jetkit.dev/)

## Quickstart

Peruse the [@jetkit/cdk README](https://github.com/jetbridge/jetkit-cdk#readme) and [documentation](https://www.jetkit.dev/). There is a [blog article overview](https://spiegelmock.com/2021/05/29/frameworkless-web-applications-aws-cdk/).

1. [Use this template to start a new repo](https://github.com/jetbridge/typescript-cdk-template/generate).
1. Install dependencies:

```shell
npm i -g aws-cdk@latest npm@latest
npm i
```

1. Deploy backend and infrastructure:

```shell
npm run deploy:infra
```

1. Run local dev server:

[More info](https://aws.amazon.com/blogs/compute/better-together-aws-sam-and-aws-cdk/).

- Install [aws-sam-cli-beta-cdk](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-cdk-getting-started.html)

- macOS: `brew install aws-sam-cli-beta-cdk`

- Run dev server and watch for changes:

- ```shell
npm start
```