Using this template:
-
Update the stack name, description and region in
/packages/cdk/bin/cdk.ts
-
Update metadata files in
/.github
most importantlyFUNDING.yml
,CODEOWNERS
, andREADME.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
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.