If you want to build a serverless app with AWS CDK, Lambda, and Postgres, this is the template for you.
Assumes you have Node 16 installed and AWS credentials configured.
npm i -g pnpm # install pnpm globally
pnpm i # install dependencies + generate types from DB and GQL schemas
All features are optional, delete what you don't need.
Click links to learn more and view documentation.
- π© Serverless Stack - powerful CDK developer experience tools
- π€ AWS CDK - cloud-native infrastructure as code
- α¨ GraphQL API
- β AWS AppSync - serverless GraphQL AWS service
- β½ Code generation of TypeScript + apollo client
- π REST API gateway
- πΎ Prisma ORM
- π Prisma engine lambda layer
- π Prisma DB migration CDK script
- π³ Database integration test setup with postgres in docker
- π Aurora Serverless RDS PostgreSQL
- π₯ NextJS frontend w/ Material-UI
- β‘οΈ Live local lambda development (
pnpm start
) - π¦ pnpm package manager
- π Fast tests with vitest
- π ES Modules
- π§ ESBuild - fast code bundling on backend (under the hood) with tree-shaking
- π« Middy - middleware for Lambda functions
- π AWS Lambda Powertools - for custom metrics, structured logging, and tracing.
Please see package.json scripts
for more.
pnpm start
pnpm fullstack
pnpm db:migrate
pnpm watch
pnpm deploy