GithubHelp home page GithubHelp logo

ellismg / cadl-e2e-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bterlson/cadl-e2e-demo

0.0 1.0 0.0 259 KB

code to cloud in ten minutes with Cadl

Shell 0.79% JavaScript 1.26% TypeScript 97.95%

cadl-e2e-demo's Introduction

Cadl End-to-End Scenario

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.

Instructions

Prerequisites

Install Node & NPM

Downlaod and install from https://nodejs.org.

Install az cli

Follow the instructions here.

Install azd (Azure Accelerators)

Follow the instructions here

Clone this repository

Clone this repository and cd into the root directory.

Install project dependencies & build

First, install our monorepo manager:

> npm install -g @microsoft/rush

Next, install the project's dependencies.

> rush install

Next, build the project.

> rush build

(Note that this step is only necessary for the demo and is not part of the experience)

Running the Demo

  1. Change your working directory to ./demo, and open vscode in this directory.
  2. Edit app.cadl if you'd like
  3. Run npm run build which compiles the cadl to a variety of assets (openapi, bicep files, implementation stubs, clients, etc.)
  4. Edit ./src/api/index.ts and implement any function endpoints you've declared in your cadl file.
  5. Edit your frontend code at ./src/web/build/index.html.
  6. Run azd up to deploy the application to the cloud.

cadl-e2e-demo's People

Contributors

bterlson avatar willmtemple avatar witemple-msft avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.