This is the source code for my Leanpub book Building a full Web-Stack with Docker and AWS Copilot.
Put these environment variables in your express and nextjs folder, so you can run them locally:
express/.env
PORT=3003
FRONTEND_HOST=*
AWS_REGION=us-west-2
DB_URI=http://dynamodb-local:8000
COPILOT_SNS_TOPIC_ARNS={"emailEvents":"arn:aws:sns:us-west-2:000000000000:emailEvents"}
AWS_ACCESS_KEY_ID=local
AWS_SECRET_ACCESS_KEY=local
SNS_TOPIC_ENDPOINT=http://localstack:4566
nextjs/.env
NEXT_PUBLIC_EXPRESS_ENDPOINT=http://localhost:3003
Photo by Emma Raphael on Unsplash