Demo app for fullstack CDK / Websocket API.
npm install
do this firstnpm run lint
check code stylenpm t
run unit testsnpm start
run UI application on localhostnpm run synth
synthesize the CloudFormation templatenpx cdk bootstrap
prepare your environmentnpm run deploy
build and deploy your appnpm run diff
diff your deployed stack
This is a fullstack app that bundles and deploys a web app fronted by cloudfront and a websocket api. In order for the frontend to be able to find the backend, the deployment drops a config.json
file in S3 that will be consumed by the UI application. The deploy process will also place this (gitignored) file on your local filesystem. After your first deployment, you'll be able to run the UI locally pointed at your hosted API.