{"id":25242986,"url":"https://github.com/lucereal/create-deploy-py-flask-az-cli-webapp","last_synced_at":"2026-05-08T13:34:12.664Z","repository":{"id":275088666,"uuid":"925029475","full_name":"lucereal/create-deploy-py-flask-az-cli-webapp","owner":"lucereal","description":"Email Send Flask Python API","archived":false,"fork":false,"pushed_at":"2025-02-01T17:28:45.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T00:39:19.110Z","etag":null,"topics":["azure","azure-cli","azure-deployment","azure-webapp","email-sender","flask","python"],"latest_commit_sha":null,"homepage":"","language":"Batchfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lucereal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-31T04:51:56.000Z","updated_at":"2025-02-01T17:30:38.000Z","dependencies_parsed_at":"2025-01-31T06:28:59.220Z","dependency_job_id":null,"html_url":"https://github.com/lucereal/create-deploy-py-flask-az-cli-webapp","commit_stats":null,"previous_names":["lucereal/create-deploy-py-flask-az-cli-webapp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucereal%2Fcreate-deploy-py-flask-az-cli-webapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucereal%2Fcreate-deploy-py-flask-az-cli-webapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucereal%2Fcreate-deploy-py-flask-az-cli-webapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucereal%2Fcreate-deploy-py-flask-az-cli-webapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucereal","download_url":"https://codeload.github.com/lucereal/create-deploy-py-flask-az-cli-webapp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247399899,"owners_count":20932876,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure","azure-cli","azure-deployment","azure-webapp","email-sender","flask","python"],"created_at":"2025-02-12T00:38:46.982Z","updated_at":"2026-05-08T13:34:07.625Z","avatar_url":"https://github.com/lucereal.png","language":"Batchfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Send Email Flask Python API App\n\nThis is a simple Flask Python API app that is used to learn how to create resources in Azure and deploy a Flask Python API app to Azure App Service. \n\nIt is used to send emails to a list of email addresses.\n\n\n\n## Prerequisites\n\n- Azure CLI - install and login to Azure CLI\n    - Validate you have an azure subscription\n- Python 3.12\n- Windows\n\n## Setup (Windows)\n\n1. Clone the repository\n2. Run `.\\setup-venv.bat` from the devops folderto create a virtual environment and install the dependencies\n3. Create `.env` file in the root of the repository with the following content:\n    ``` \n    FLASK_APP=src.app:create_app()\n    SMTP_SERVER=smtp.gmail.com\n    SMTP_PORT=587\n    SMTP_USERNAME=(gmail address)\n    SMTP_PASSWORD= (gmail app password)\n    TEST_TO_EMAIL= (email address to send test email to)\n    ```\n5. Make sure venv is activated and run app locally by running `flask run` in the root of the repository\n6. Create `.\\config.bat` in the devops folder using the template in `devops/config.template.bat`\n7. Run `.\\create-resources.bat` in the devops folder to create the Azure resources\n8. Run `.\\set-email-config.bat` in the devops folder to set the email configuration\n9. Run `.\\deploy-webapp.bat` in the devops folder to deploy the app to Azure App Service\n10. Login to Azure Portal and validate the resources were created and the app is running\n\n\n## Endpoints\n- Main: /\n- Send Test Email: /email/send-test\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucereal%2Fcreate-deploy-py-flask-az-cli-webapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucereal%2Fcreate-deploy-py-flask-az-cli-webapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucereal%2Fcreate-deploy-py-flask-az-cli-webapp/lists"}