For Fontend code please check master
branch
git clone https://github.com/ketan-10/emoji-rain.git
cd emoji-rain
yarn
: Install dependencies
yarn dev
: Serve application
Dependencies Used :
- @material-ui/core : styling
- react-spring : animation
-
Future migration to MySQL How to connect AWS Lambda to a MySQL database to update it? (using RDS proxy)
-
MySQS DeadLock and Indexing Blocking and Locking: How to Find and Fight Concurrency Problems
npm install -g aws-cdk
cdk init app --language=typescript
This is a blank project for TypeScript development with CDK.
The cdk.json
file tells the CDK Toolkit how to execute your app.
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 templatecdk bootstrap
The first time you deploy an AWS CDK app into an environment (account/region), you can install a “bootstrap stack”. This stack includes resources that are used in the toolkit’s operation. For example, the stack includes an S3 bucket that is used to store templates and assets during the deployment process.
mkdir lambdas/emoji-rain-handler
create new directory for lambdanpm init
new npm project with all defaultstouch index.ts
create new index.ts filenpm i --save typescript
install typescripttouch tsconfig.json
create empty tsconfig.json filenpm i --save-dev @types/node @types/aws-lambda
install typesnpm i --save-dev @vercel/ncc
ncc compiler to compile typescript and bundle- Copy tsconfig.json from readme of github.com/vercel/ncc
npm install aws-sdk && npm i --save-dev @types/aws-sdk
npx ncc build index.ts -o dist/ncc
build lambdazip -j dist/deploy.zip ./dist/ncc/*
build zipcdk deploy --outputs-file ./cdk-outputs.json
cdk output file