はじめに以前の記事で、Serverless + TypeScript のプロジェクトを作りました。 今回はそのプロジェクトに Express(と、serverless-http)を導入します。 リポジトリも用意しました。 導入方法Express と serverless-http をインストール$ npm install express serverless-http express を TypeScript で扱うために@types/expressもインストールします。 $ npm install -D @types/express express + serverless-http を使った handler をapp.tsに用意import { APIGatewayEventRequestContext, APIGatewayProxyEvent, Context, } from "a
![Serverless + TypescriptのプロジェクトにExpressを導入する](https://cdn-ak-scissors.b.st-hatena.com/image/square/82c8e0e901dfaceb9bb2a18df3fa8a100c939f77/height=288;version=1;width=512/https%3A%2F%2Fblog.70-10.net%2Fog%2Fserverless-typescript-express.png)