# My Widget Service --- ![Stability: Stable](https://img.shields.io/badge/stability-Stable-success.svg?style=for-the-badge) > **This is a stable example. It should successfully build out of the box** > > This examples is built only on the CDK core library, and does not have any infrastructure prerequisites to build. --- This example uses lambda to serve-up widgets. ## Build To build this app, you need to be in this example's root folder. Then run the following: ```bash npm install -g aws-cdk npm install npm run build ``` This will install the necessary CDK, then this example's dependencies, and then build your TypeScript files and your CloudFormation template. ## Deploy This stack uses assets, so the toolkit stack must be deployed to the environment. This can be done by running the following command: ```shell script cdk bootstrap aws://account-id/aws-region ``` To deploy / redeploy the Stack to your AWS Account, run `cdk deploy`. After the deployment you will see the API's URL, which represents the url you can then use. ## Synthesize Cloudformation Template To see the Cloudformation template generated by the CDK, run `cdk synth`, then check the output file in the "cdk.out" directory.