{"id":21254236,"url":"https://github.com/faraasat/fastapi-vercel-example","last_synced_at":"2025-10-19T02:32:55.178Z","repository":{"id":214305971,"uuid":"727510186","full_name":"faraasat/fastapi-vercel-example","owner":"faraasat","description":"Example code for article - Simple Guide on Deploying Python FastAPI on Vercel — Free of Cost","archived":false,"fork":false,"pushed_at":"2024-03-07T05:50:39.000Z","size":3,"stargazers_count":4,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T19:14:07.848Z","etag":null,"topics":["application-programming-interface","deployment","fastapi","python","python3","vercel","vercel-deployment"],"latest_commit_sha":null,"homepage":"https://fastapi-vercel-example-phi.vercel.app/","language":"Python","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/faraasat.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}},"created_at":"2023-12-05T02:18:43.000Z","updated_at":"2024-09-12T16:58:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"b9812a92-b3c9-41eb-8e7c-7f0e2f25a93d","html_url":"https://github.com/faraasat/fastapi-vercel-example","commit_stats":null,"previous_names":["faraasat/fastapi-vercel-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/faraasat/fastapi-vercel-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faraasat%2Ffastapi-vercel-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faraasat%2Ffastapi-vercel-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faraasat%2Ffastapi-vercel-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faraasat%2Ffastapi-vercel-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/faraasat","download_url":"https://codeload.github.com/faraasat/fastapi-vercel-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faraasat%2Ffastapi-vercel-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264712607,"owners_count":23652625,"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":["application-programming-interface","deployment","fastapi","python","python3","vercel","vercel-deployment"],"created_at":"2024-11-21T03:54:42.104Z","updated_at":"2025-10-19T02:32:50.146Z","avatar_url":"https://github.com/faraasat.png","language":"Python","readme":"# FastAPI Vercel Example\n\n### This Example Code is a Part of an Article: Simple Guide on Deploying Python FastAPI on Vercel — Free of Cost\n\n\u003chr /\u003e\n\n##### Live Url: [Deployment](https://fastapi-vercel-example-phi.vercel.app/)\n##### Article Link: [Medium](https://faraasat.medium.com/simple-guide-on-deploying-python-fastapi-on-vercel-free-of-cost-549e879305d6)\n\n\u003chr /\u003e\n\n### Introduction: \nWhether you’re working on a hobby project or a professional endeavor, deployment is essential. FastAPI, a high-performance web framework for building APIs with Python, offers an efficient way to handle concurrent tasks using asynchronous programming. In this guide, we’ll explore deploying a FastAPI application on Vercel, which provides a straightforward interface for continuous deployment, and the best part—it’s free!\n\n### Steps for Deployment:\n\n#### 1. Initialize the Project:\n- Create a new project directory (e.g., flask-api-example).\n- Set up a virtual environment (optional but recommended).\n- Install Python dependencies specified in the requirements.txt file.\n#### 2. Write the API:\n- Create an index.py file within a directory (e.g., api).\n- Define your FastAPI routes and endpoints (e.g., a simple “Hello World” response).\n#### 3. Configure .gitignore:\n- Initialize a Git repository.\n- Add a .gitignore file to exclude specific files and directories (e.g., IDE-related files, cache, and virtual environments).\n#### 4. Create vercel.json:\n- Add a vercel.json file at the root of your app.\n- Specify the build process and routes for Vercel deployment.\n#### 5. Deploy on Vercel:\n- Using Vercel CLI:\n    - Install Vercel CLI globally (npm i -g vercel).\n    - Log in to the CLI using vercel login.\n- Deploy using vercel commands.\n    - Using GitHub/GitLab Integration:\n    - Connect your Vercel account to your Git repository.\n    - Automatically deploy on every push to the repository.\n\n### Conclusion: \nBy following these steps, you can deploy your Python FastAPI application on Vercel without any cost. Enjoy hassle-free deployment and focus on building great APIs! 🚀.\n\n### Result:\n![screencapture-fastapi-vercel-example-phi-vercel-app-2024-03-07-10_45_29](https://github.com/faraasat/fastapi-vercel-example/assets/63093876/be15d870-211a-4cc1-b0b3-033d05e62cb6)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaraasat%2Ffastapi-vercel-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffaraasat%2Ffastapi-vercel-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaraasat%2Ffastapi-vercel-example/lists"}