Mystash @ https://mystash.70511337.xyz/
- PNPM is required
- Docker is required
- Serverless is required
- AWS CLI is required
Install pnpm
npm install pnpm --global
pnpm setupSetup environment variables
cp ./packages/backend/.env.example ./packages/backend/.envpnpm install -g serverlesssudo pacman -S aws-cli
aws configure --profile mystashapp-devAdd or update ~/.aws/config
[default]
s3 =
endpoint_url = http://localhost:4566Init
pnpm run initLogin: dev@example.com / salasana
pnpm run devpnpm startList tables
aws dynamodb list-tables --endpoint-url http://localhost:8001Delete table
aws dynamodb delete-table --table-name mystash-dev-users --endpoint-url http://localhost:8001List users
aws dynamodb scan \
--table-name mystash-dev-users \
--endpoint-url http://localhost:8001List notes
aws dynamodb scan \
--table-name mystash-dev-notes \
--endpoint-url http://localhost:8001List files
aws dynamodb scan \
--table-name mystash-dev-files \
--endpoint-url http://localhost:8001aws dynamodb delete-item \
--table-name mystash-dev-users \
--key '{"id": {"S": "replace-this-with-real-uuid"}}' \
--endpoint-url http://localhost:8001aws dynamodb delete-item \
--table-name mystash-dev-notes \
--key '{"id": {"S": "0de4eafa-4752-4535-aab0-79a3a9592b95"}}' \
--endpoint-url http://localhost:8001aws --endpoint-url=http://localhost:4566 s3 ls
aws --endpoint-url=http://localhost:4566 s3 ls s3://mystash-dev-infra-files-bucket --recursiveMust install aws cli and cdk before. If cdk synth gives some docker error make sure esbuild is installed!
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/installpnpm install -g aws-cdk
pnpm install -g ts-nodeexport AWS_PROFILE=mystashapp-prod
pnpm ci
aws s3 ls
aws sts get-caller-identity --profile mystashapp-prod
cdk bootstrap aws://AWS-ACCOUNT-ID-HERE/eu-north-1cd frontend
pnpm run buildcd stack
export AWS_PROFILE=mystashapp-prod
pnpm cdk synth --profile mystashapp-prod
pnpm cdk diff --profile mystashapp-prod
pnpm cdk deploy --profile mystashapp-prod