This is an example of an end-to-end stack that uses React, AWS and Go for a fully scalable and hosted applicaton This stacks comes with middleware, protected routes, logging in and registering users to a Dynamo Database.
This stack consists of:
- Vite, React, Tailwind on the Frontend
- Go, AWS SDK on the Backend
- DynamoDB, Lambda, API Gateway and CloudFront on the infrastructure
Lambda is the deployment of choice. If you want to deploy your code to a Fargate service, check out this repo
-
AWS CDK and Typescript should be installed on your system.
-
AWS credentials should be configured on your system.
-
A domain name registered with Route53 with a hosted zone.
Make sure to build the main binary file with: go build -o main
in the lambda/cmd
route
npm run build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit testscdk deploy
deploy this stack to your default AWS account/regioncdk diff
compare deployed stack with current statecdk synth
emits the synthesized CloudFormation template
Run the following command to delete the stack.
cdk destroy