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

https://github.com/matootie/serverless

⚡️ Template to build a serverless app deployed to AWS. Features a React SPA deployed to AWS S3, an Express.js based API deployed to AWS Lambda, with both connected and served over AWS CloudFront, all configured using the AWS CDK.
https://github.com/matootie/serverless

aws aws-cdk esbuild express nodejs react serverless template turborepo typescript vite vitejs

Last synced: 12 months ago
JSON representation

⚡️ Template to build a serverless app deployed to AWS. Features a React SPA deployed to AWS S3, an Express.js based API deployed to AWS Lambda, with both connected and served over AWS CloudFront, all configured using the AWS CDK.

Awesome Lists containing this project

README

          

# Serverless Template

Using this template:

- Update the stack name, description and region in `/packages/cdk/bin/cdk.ts`
- Update metadata files in `/.github` most importantly `FUNDING.yml`, `CODEOWNERS`, and `README.md`

- Write your UI library in `/packages/ui`
- Write your shared utilities in `/packages/utils`

- Write your client functionality in `/services/client`, a React SPA built using Vite
- Write your API in `/services/api`, an Express.js app bundled using ESBuild
- I recommend treating this API as an edge service — a "back-end for front-end" — and simply use it to call downstream data-domain or business logic APIs

## Demo

View a deployed demo of the template at [`d3ohu3yecjc5ag.cloudfront.net`](https://d3ohu3yecjc5ag.cloudfront.net)

The API is accessible on [`/api/*`](https://d3ohu3yecjc5ag.cloudfront.net/api), the client is accessible on all other endpoints.