This repo contains the code and configuration for an end-to-end scenario for using Cadl to develop and deploy a full application.
Support libraries that enable the demo features are in the packages/ directory. The demo code itself is in the demo/
directory.
Downlaod and install from https://nodejs.org.
Follow the instructions here.
Follow the instructions here
Clone this repository and cd into the root directory.
First, install our monorepo manager:
> npm install -g @microsoft/rushNext, install the project's dependencies.
> rush installNext, build the project.
> rush build(Note that this step is only necessary for the demo and is not part of the experience)
- Change your working directory to
./demo, and open vscode in this directory. - Edit
app.cadlif you'd like - Run
npm run buildwhich compiles the cadl to a variety of assets (openapi, bicep files, implementation stubs, clients, etc.) - Edit
./src/api/index.tsand implement any function endpoints you've declared in your cadl file. - Edit your frontend code at
./src/web/build/index.html. - Run
azd upto deploy the application to the cloud.