Git Product home page Git Product logo

sample-python's Introduction

Getting Started

This repo is forked from digitalocean/sample-python. Compared with the original repo, a Dockerfile is added to work around azd deploy issue.

Prepare

Prepare Code to Cloud environment by following the steps below, or check Code to Cloud readme to learn more.

  1. Install VSCode-Insider.
  2. Install extension Github Copilot, Github Copilot Chat and login to Copilot.
  3. Clone the Code to Cloud project and checkout to stable branch.
    git clone https://github.com/Azure/codeToCloud.git
    git checkout stable
  4. Open the project with VSCode-Insider
    code-insiders --enable-proposed-api Microsoft.codetocloud codeToCloud/
  5. Install dependencies via npm install at the project root folder.
  6. Run Debug task to start a debug window.
  7. In debug VSCode window, open the project you want to test with CodeToCloud
  8. In debug Copilot chat window, run @codetocloud /recommend
  9. In debug Copilot chat window, run @codetocloud /generate

Path 1. azd

  1. Clone repo
git clone https://github.com/houk-ms/sample-python
  1. Init the repo with azd init
cd sample-python/
azd init
  1. Deploy to Azure
azd up

Path 2. CodeToCloud + azd

  1. Clone repo
git clone https://github.com/houk-ms/sample-python
  1. Open the project in debug VSCode Insider window, init the repo with CodeToCloud.

    • @codetocloud /recommend: run this command in Github Copilot to analyze codes and get recommended azure services
    • @codetocloud /generate: run this command to generate bicep files and make the repo azd compatible
  2. Deploy to Azure

azd up

sample-python's People

Contributors

kamaln7 avatar houk-ms avatar bojand avatar keladhruv avatar elanhasson avatar jakelevirne avatar sharmita3 avatar alkhatib avatar belov38 avatar reinaris 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.