Welcome to Express.js (+Koa +Hapi +Fastify) app deployed to AWS Lambda and AWS API Gateway

Technology

AWS Lambda interface to the Express app has been provided by lambda-request-handler module The example app includess a tiny Koa and Hapi apps linked as middlewares to the main Express app.

Features

Endpoints

index - This index page. It's using the EJS view feature.

cookies - This page will set some cookies

inspect - You can see here lots of details about the current request

graphql - Opens the Apollo GraphQL Playground. An example query is query{books{title}}

koa - An endpoint served by Koa

hapi - An endpoint served by Hapi

fastify - An endpoint served by Fastify

echo - Returns back the request body. You probably want to send a JSON POST request to it

static/file.png - Serves static binary files just like this one

static/big.html - A large html file showcasing the content compression feature

AWS API Gateway frontentd

This app is fronted by API Gateway HTTP API and REST API

AWS API Gateway REST API

AWS API Gateway HTTP API with payload version 1.0

AWS API Gateway HTTP API with payload version 2.0