Thanks to visit codestin.com
Credit goes to github.com

Skip to content

houk-ms/sample-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

⛵ App Platform sample Python application.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 48.9%
  • Python 48.8%
  • Procfile 2.3%