Тёмный

Deploy FastAPI on Vercel | Quick and Easy Tutorial 

Eric Roby
Подписаться 9 тыс.
Просмотров 9 тыс.
50% 1

Deploying FastAPI on Vercel is easy. You don't need to be a pro developer to get FastAPI running for the world to use! Quick tutorial under 6 minutes.
💻 Git Repository: www.codingwith...
Download Node.js (for npm): nodejs.org/en
🎥 React + FastAPI: • How to build a React +...
🎥 AWS Lambda + FastAPI: • Deploy FastAPI on AWS ...
🎥 MongoDB + FastAPI: • Unlocking the Power of...
🎥 MySQL + FastAPI: • How to build a FastAPI...
🎥 PostgreSQL + FastAPI: • How to build a FastAPI...
🎓 Courses can be found:
FastAPI Beginner & Advanced: www.udemy.com/...
Learn Chatbot Development: www.udemy.com/...
👨‍💻 Hi, I am Eric!👨‍💻
Hey! I’m a seasoned developer and Cloud enthusiast. I love sharing my knowledge and helping others to discover the exciting world of programming and cloud technologies. For more tutorials, tips, and tech magic, don’t forget to hit that subscribe button and ring the bell for notifications!
🙏 Support The Channel 🙏
If you found this tutorial helpful, please give it a thumbs up 👍, comment, and share it with your network 🌍
#fastapi #python #vercel

Опубликовано:

 

20 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 45   
@arpy8
@arpy8 5 месяцев назад
Ahhh you're a saviour, i was so frustrated because of this severless function getting crashed again and again, THANK YOU SO MUCH!!! h❤❤❤❤❤❤
@codingwithroby
@codingwithroby 5 месяцев назад
Glad I could help! Woot woot!
@phani3519
@phani3519 5 месяцев назад
best fastapi mentor ever
@codingwithroby
@codingwithroby 5 месяцев назад
Thank you! 😊
@gauravwankhede9263
@gauravwankhede9263 8 дней назад
Thank you sir for this Awesome tutorial. ❤ I am wondering how this deployed backend server can be used for the NextJs Frontend app? If you can make a tutorial it will help is alot. 😊
@codingwithroby
@codingwithroby 6 дней назад
I have a NextJS video that may help you with this 🙂
@gauravwankhede9263
@gauravwankhede9263 6 дней назад
@@codingwithroby Thank You for your reply. I am thinking to deploy FastAPI As a backend and for frontend I am using NextJS.
@123TRATRATRA
@123TRATRATRA 5 месяцев назад
Eric ma man, it was the right time to make a project given you just posted, keep it up!
@codingwithroby
@codingwithroby 5 месяцев назад
No doubt!
@oluwatosin001
@oluwatosin001 3 месяца назад
i did this but i have an issue where I created a new folder and that's where most of my endpoints logic are but I can see it in the docs of the API
@rangabharath4253
@rangabharath4253 5 месяцев назад
Awesome as always 🙂
@codingwithroby
@codingwithroby 5 месяцев назад
You're awesome!
@vitvitvitvitvitvitvitvit
@vitvitvitvitvitvitvitvit 2 месяца назад
thanks, man! the node 18.x version set python 3.9 version. There is a way to use python 3.12, which is the default, while using node 18.x?
@tattat4042
@tattat4042 5 месяцев назад
Thanks Eric, great job
@codingwithroby
@codingwithroby 5 месяцев назад
You are so welcome!
@tattat4042
@tattat4042 5 месяцев назад
@@codingwithroby Appreciate your fix at the end to switch from 20.x to 18.x which I have spent sometime trying to fix but couldn't until I found your video. Could you please show us how to call fastapi from react in Vercel? I tried but facing a CORS issue
@lordareello8221
@lordareello8221 Месяц назад
Hi please can I use this with jinja templates... awesome tutorial
@codingwithroby
@codingwithroby Месяц назад
Yes of course!
@Andromeda26_
@Andromeda26_ 5 месяцев назад
Awesome, Can you please create a simple react and use it as the front along side FastApi and deploy both on vercel?
@codingwithroby
@codingwithroby 5 месяцев назад
You can deploy the FE (very similar way) and have it point to your deployed FastAPI application for the API calls.
@cherryjayhawk4845
@cherryjayhawk4845 4 месяца назад
I almost dead by this FUNCTION_INVOCATION_FAILED error. Tysm dude!
@codingwithroby
@codingwithroby 4 месяца назад
I am here to save the day!
@boundless-sher
@boundless-sher 5 месяцев назад
where do you deploy a fastapi backend with database though?
@codingwithroby
@codingwithroby 5 месяцев назад
Me specifically? If I want to deploy with a database like PostgreSQL or mySQL I would use AWS or Heroku.
@boundless-sher
@boundless-sher 5 месяцев назад
@@codingwithroby can u make a tutorial on it or let me know if you already have one
@codingwithroby
@codingwithroby 5 месяцев назад
If you are wanting to use AWS - I am currently building a course right now. It will be a paid course but will cover creating an AWS account, using the services, getting a deployed FastAP, React, and database application with your own custom domain and SSL, all connected by CICD on Github. Pretty cool course overall.
@vrajentertainments4288
@vrajentertainments4288 Месяц назад
how about the ci/cd pipelines
@codingwithroby
@codingwithroby Месяц назад
I can look into making a video for that.
@مبشر
@مبشر 4 месяца назад
Great Mentor!! But unfortunately my error didn't solve 😞. Whenever I add firebase admin or supabase, I get FUNCTION_INVOCATION_FAILED error. Also tried changing node version, same thing happens always. Is there any solution for it?
@codingwithroby
@codingwithroby 4 месяца назад
Hmm does it work without firebase/supabase stuff? My guess would be environmental variables are off
@AliAsif-kq8cd
@AliAsif-kq8cd 4 месяца назад
i am deploying sql model with fastapis and still got this sever error after fixing everything
@codingwithroby
@codingwithroby 4 месяца назад
Start over - and do exactly as I do it - step by step. Change Node to 18.
@emmanuelparvez5234
@emmanuelparvez5234 2 месяца назад
Is there a way to deploy react with this API?
@codingwithroby
@codingwithroby 2 месяца назад
Yeah - I got you: www.udemy.com/course/deploy-fastapi-fullstack-amazon-cloud-aws/?referralCode=706861EF28A616B36FEC
@مبشر
@مبشر 2 месяца назад
Does vercel support websockets?
@codingwithroby
@codingwithroby 2 месяца назад
Nope - they are serverless.
@JbrDeveloper
@JbrDeveloper 5 месяцев назад
what we can do if our api is connected with mysql?
@codingwithroby
@codingwithroby 5 месяцев назад
You can deploy your database separately on something like AWS RDS and connect it from there.
@JbrDeveloper
@JbrDeveloper 5 месяцев назад
@@codingwithroby Ohh great idea thank you so much teacher
@Avvenio
@Avvenio 4 месяца назад
Wow, I haven't been so impressed by a RU-vidr in terms of setting, lighting, voice and look for a long time! Really great! Subscribed! I was wondering, could we have both nodejs and python routes in our api folder in the same project? Or would the runtime be set once per project in vercel?
@codingwithroby
@codingwithroby 4 месяца назад
Aww thank you! I spent time & money figuring lighting and camera out lol. Unfortunately on vercel the runtime needs to be configured for the product. You could probably do it, but better if it is two separate applications.
@Sam-u6c2v
@Sam-u6c2v 4 месяца назад
im still receciing this crazy bug what the heck I cannot for the life of me figure this out This Serverless Function has crashed. Your connection is working correctly. Vercel is working correctly. 500: INTERNAL_SERVER_ERROR Code: FUNCTION_INVOCATION_FAILED ID: iad1::fxfwz-1716771331917-75192ab98bae
@codingwithroby
@codingwithroby 4 месяца назад
And you changed the node version? Make sure your project is structured correctly
@saltukkezer5100
@saltukkezer5100 4 месяца назад
@@codingwithroby Does the main.py have to be inside the api folder? What happens if it is not, and how does it matter? I have an existing project and try to deploy it on vercel but it does not work.
@codingwithroby
@codingwithroby 4 месяца назад
@@saltukkezer5100 It does if you want to follow this step by step. You will have to change the vercel path to whatever your path is.
Далее
How I deploy serverless containers for free
6:33
Просмотров 535 тыс.
Why You NEED To Learn FastAPI | Hands On Project
21:15
Просмотров 165 тыс.
Deploy FastAPI on AWS Lambda | In 9 MINUTES
9:02
Просмотров 31 тыс.
Why People Aren't Deploying to Vercel Anymore
5:55
Просмотров 171 тыс.
Don't use these services for your SaaS
6:45
Просмотров 29 тыс.