If you would like to use Buttonize CLI for local development
you must export cdk.App so that the CLI is able to import the file and generate the CDK constructs tree
to show you the live-preview of the app.
API Key
Buttonize API Key is crucial for deploying Buttonize apps, you can create an API Key here.
Once you have the API key, make sure to call Buttonize.init at the beginning of your CDK stack.
Sample Buttonize app
CDK Stack
Lambda handler
Local development
Once you start local development with buttonize dev you can go to app.buttonize.io/live to view your application.
Buttonize CLI monitors changes in your CDK code and always renders the latest version of the app. In case the app is deployed Buttonize CLI fetches all the
necessary information from AWS to make sure the app is fully working also locally.
App deployment
Since Buttonize seamlessly integrates into your CDK application as a CDK Construct, you can deploy your Buttonize apps just by executing standard deployment commands.
Once you deploy the app, you can go to app.buttonize.io and you will see your app right there.
And the application itself looks like this.
You have deployed your first Buttonize app
Congrats! Let us know how you liked it on Discord.