Skip to content
/ serverless Public template

⚡️ 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.

License

Notifications You must be signed in to change notification settings

matootie/serverless

Repository files navigation

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

The API is accessible on /api/*, the client is accessible on all other endpoints.

About

⚡️ 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.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published