Full-stack example using AWS SAM, DynamoDB for backend, Svelte, AWS S3 for frontend. Used AWS CloudFront and API Gateway to combine all services.
Prerequisites: aws-sam-cli, aws-cli, docker, node, pnpm
pnpm i
in the root directory.pnpm dev
for testing.(No hot-reload for backend because of limitation of sam local start-api
, You need to
execute pnpm build
in advance.)pnpm build
for production-ready build. (file generated to packages/server/.aws-sam/build
for
backend, packages/client/.svelte-kit/build
for frontend)pnpm deploy
for deploy project to aws.pnpm delete
for delete service stack from AWS.