Deploy FastAPI on Vercel | Quick and Easy Tutorial

Поділитися
Вставка
  • Опубліковано 26 жов 2024

КОМЕНТАРІ • 47

  • @wiktor6436
    @wiktor6436 14 годин тому

    thanks, it's very valuable tutorial

    • @codingwithroby
      @codingwithroby  12 годин тому

      Awesome, I am glad you found it useful!

  • @arpy8
    @arpy8 5 місяців тому +2

    Ahhh you're a saviour, i was so frustrated because of this severless function getting crashed again and again, THANK YOU SO MUCH!!! h❤❤❤❤❤❤

  • @gauravwankhede9263
    @gauravwankhede9263 14 днів тому +1

    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  13 днів тому +1

      I have a NextJS video that may help you with this 🙂

    • @gauravwankhede9263
      @gauravwankhede9263 13 днів тому +1

      @@codingwithroby Thank You for your reply. I am thinking to deploy FastAPI As a backend and for frontend I am using NextJS.

  • @phani3519
    @phani3519 5 місяців тому +1

    best fastapi mentor ever

  • @123TRATRATRA
    @123TRATRATRA 5 місяців тому

    Eric ma man, it was the right time to make a project given you just posted, keep it up!

  • @rangabharath4253
    @rangabharath4253 5 місяців тому +2

    Awesome as always 🙂

  • @tattat4042
    @tattat4042 5 місяців тому +1

    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

  • @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 місяців тому +1

      You can deploy the FE (very similar way) and have it point to your deployed FastAPI application for the API calls.

  • @oluwatosin001
    @oluwatosin001 3 місяці тому +1

    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

  • @cherryjayhawk4845
    @cherryjayhawk4845 5 місяців тому

    I almost dead by this FUNCTION_INVOCATION_FAILED error. Tysm dude!

  • @lordareello8221
    @lordareello8221 Місяць тому

    Hi please can I use this with jinja templates... awesome tutorial

  • @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?

  • @Avvenio
    @Avvenio 4 місяці тому +1

    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?

    • @codingwithroby
      @codingwithroby  4 місяці тому +1

      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.

  • @boundless-sher
    @boundless-sher 5 місяців тому +1

    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 місяців тому +1

      @@codingwithroby can u make a tutorial on it or let me know if you already have one

    • @codingwithroby
      @codingwithroby  5 місяців тому +4

      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.

  • @مبشر
    @مبشر 5 місяців тому

    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

  • @مبشر
    @مبشر 2 місяці тому

    Does vercel support websockets?

  • @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

  • @vrajentertainments4288
    @vrajentertainments4288 2 місяці тому

    how about the ci/cd pipelines

    • @codingwithroby
      @codingwithroby  2 місяці тому

      I can look into making a video for that.

  • @AliAsif-kq8cd
    @AliAsif-kq8cd 5 місяців тому

    i am deploying sql model with fastapis and still got this sever error after fixing everything

    • @codingwithroby
      @codingwithroby  5 місяців тому

      Start over - and do exactly as I do it - step by step. Change Node to 18.

  • @JbrDeveloper
    @JbrDeveloper 5 місяців тому

    what we can do if our api is connected with mysql?

    • @codingwithroby
      @codingwithroby  5 місяців тому +1

      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

  • @Sam-u6c2v
    @Sam-u6c2v 5 місяців тому

    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  5 місяців тому

      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.