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. 😊
Really great stuff thank you! i think the hobby tier allows you to host up to 200 sites i just read somewhere. Can't believe it is free which is fantastic although there is no reason why web hosting should be super expensive in this day and age for basic performance anyway. I will definitely pay for a Vercel plan if my apps start to scale
@@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
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.
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?
Wow, I haven't been so impressed by a UA-camr 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?
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.
wtf, why do you force me to subscribe to your nl for a 6 min video? It really makes me want to not subscribe and report you as spam... Give me the option and i will do it happy, but force me? pass...
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 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.
best fastapi mentor ever
Thank you! 😊
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
Awesome as always 🙂
You're awesome!
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. 😊
I have a NextJS video that may help you with this 🙂
@@codingwithroby Thank You for your reply. I am thinking to deploy FastAPI As a backend and for frontend I am using NextJS.
Eric ma man, it was the right time to make a project given you just posted, keep it up!
No doubt!
thanks, it's very valuable tutorial
Awesome, I am glad you found it useful!
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?
Really great stuff thank you! i think the hobby tier allows you to host up to 200 sites i just read somewhere. Can't believe it is free which is fantastic although there is no reason why web hosting should be super expensive in this day and age for basic performance anyway. I will definitely pay for a Vercel plan if my apps start to scale
Awesome! Glad it was helpful 🙂
Thanks Eric, great job
You are so welcome!
@@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
where do you deploy a fastapi backend with database though?
Me specifically? If I want to deploy with a database like PostgreSQL or mySQL I would use AWS or Heroku.
@@codingwithroby can u make a tutorial on it or let me know if you already have one
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.
Awesome, Can you please create a simple react and use it as the front along side FastApi and deploy both on vercel?
You can deploy the FE (very similar way) and have it point to your deployed FastAPI application for the API calls.
Ahhh you're a saviour, i was so frustrated because of this severless function getting crashed again and again, THANK YOU SO MUCH!!! h❤❤❤❤❤❤
Glad I could help! Woot woot!
Hi please can I use this with jinja templates... awesome tutorial
Yes of course!
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?
Hmm does it work without firebase/supabase stuff? My guess would be environmental variables are off
how about the ci/cd pipelines
I can look into making a video for that.
i am deploying sql model with fastapis and still got this sever error after fixing everything
Start over - and do exactly as I do it - step by step. Change Node to 18.
Is there a way to deploy react with this API?
Yeah - I got you: www.udemy.com/course/deploy-fastapi-fullstack-amazon-cloud-aws/?referralCode=706861EF28A616B36FEC
Does vercel support websockets?
Nope - they are serverless.
what we can do if our api is connected with mysql?
You can deploy your database separately on something like AWS RDS and connect it from there.
@@codingwithroby Ohh great idea thank you so much teacher
Wow, I haven't been so impressed by a UA-camr 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?
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.
I almost dead by this FUNCTION_INVOCATION_FAILED error. Tysm dude!
I am here to save the day!
wtf, why do you force me to subscribe to your nl for a 6 min video? It really makes me want to not subscribe and report you as spam... Give me the option and i will do it happy, but force me? pass...
No forcing happening over here, feel free to type out the code - it's all there in the video.
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
And you changed the node version? Make sure your project is structured correctly
@@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.
@@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.