{"id":21246851,"url":"https://github.com/apfirebolt/fastapi-azure-deploy","last_synced_at":"2026-05-06T04:06:52.867Z","repository":{"id":61200511,"uuid":"531673395","full_name":"Apfirebolt/fastapi-azure-deploy","owner":"Apfirebolt","description":"A simple fastapi app with React frontend to test Azure deployment","archived":false,"fork":false,"pushed_at":"2023-01-16T16:05:19.000Z","size":2712,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-04T22:13:58.635Z","etag":null,"topics":["azure-devops","fastapi","microsoft-azure","postgresql","react"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Apfirebolt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-09-01T20:18:31.000Z","updated_at":"2022-09-02T21:05:12.000Z","dependencies_parsed_at":"2023-02-10T04:31:07.613Z","dependency_job_id":null,"html_url":"https://github.com/Apfirebolt/fastapi-azure-deploy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Apfirebolt/fastapi-azure-deploy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Apfirebolt%2Ffastapi-azure-deploy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Apfirebolt%2Ffastapi-azure-deploy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Apfirebolt%2Ffastapi-azure-deploy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Apfirebolt%2Ffastapi-azure-deploy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Apfirebolt","download_url":"https://codeload.github.com/Apfirebolt/fastapi-azure-deploy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Apfirebolt%2Ffastapi-azure-deploy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32677951,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T02:33:58.958Z","status":"ssl_error","status_checked_at":"2026-05-06T02:33:39.611Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-devops","fastapi","microsoft-azure","postgresql","react"],"created_at":"2024-11-21T02:08:16.389Z","updated_at":"2026-05-06T04:06:52.773Z","avatar_url":"https://github.com/Apfirebolt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastAPI and React Simple App with Azure Deployment Guide\n\n![Azure](https://img.shields.io/badge/azure-%230072C6.svg?style=for-the-badge\u0026logo=microsoftazure\u0026logoColor=white)\n![FastAPI](https://img.shields.io/badge/FastAPI-005571?style=for-the-badge\u0026logo=fastapi)\n![NodeJS](https://img.shields.io/badge/node.js-6DA55F?style=for-the-badge\u0026logo=node.js\u0026logoColor=white)\n![React](https://img.shields.io/badge/react-%2320232a.svg?style=for-the-badge\u0026logo=react\u0026logoColor=%2361DAFB)\n\n## Requirements 🏃\n\n- Familiarity with FastAPI and Python\n- Knowledge of React and Javascript\n- Bit of knowledge about deployment and MS Azure\n\nThe idea to create this originated through a recent requirement of app deployment to Azure cloud in my current organization. I went through some tutorials and blogs, had a paid account activated on Azure to experiment with various features Azure has to offer.\n\nThis app started as a simple Fast-API app but now, it has a frontend integrated which is written in React. I also plan to test this with MS SQL Server and Postgres in the \nfuture.\n\n## Issues\n\n- I was not able to execute multiple startup commands once the app is deployed, I manually had to run migrations which I wanted to be automated.\n- Don't know how to access the app directory and the venv to execute commands through SSH.\n\n## Start Script for Azure\n\nPut this under Settings --\u003e Configuration --\u003e General --\u003e Startup Command\n\n```\ngunicorn -w 4 -k uvicorn.workers.UvicornWorker main:app\n```\n\n## Deployment\n\nSetup the application variables to set the connection with Azure Postgres instance. **Configuration** --\u003e **App Settings**.\n\nFor Postgres add the IP address of the server which would be hosting the FastAPI App. **Connection Security** --\u003e **Firewall Rule Name**.\n\nAlso, check access to Azure apps toggle button.\n\n```\nDATABASE_USERNAME = os.environ.get('DATABASE_USERNAME')\nDATABASE_PASSWORD = os.environ.get('DATABASE_PASSWORD')\nDATABASE_HOST = os.environ.get('DATABASE_HOST')\nDATABASE_NAME = os.environ.get('DATABASE_NAME')\n```\n\nReact frontend build is generated on the development machine and it is directed through jinja templates.\n\nDeployed on Azure currently on this url https://amit-fastapi.azurewebsites.net/\nBy the time you might be reading this the link might not be working anymore.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapfirebolt%2Ffastapi-azure-deploy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapfirebolt%2Ffastapi-azure-deploy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapfirebolt%2Ffastapi-azure-deploy/lists"}