Deploy Full Stack App to Vercel | React Nodejs Express Mongo | MERN Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ม.ค. 2025

ความคิดเห็น •

  • @pavanibasa5463
    @pavanibasa5463 11 หลายเดือนก่อน +2

    Thank you so much. This tutorial helped after 3 hours of struggle

    • @tuattrananh
      @tuattrananh  11 หลายเดือนก่อน

      I'm glad you found it useful

  • @stonecomstock
    @stonecomstock ปีที่แล้ว +2

    Dude, thank you so much! This finally helped me deploy my mern app. I have been searching for videos and been stuck for a while. Thank you!

    • @tuattrananh
      @tuattrananh  ปีที่แล้ว

      ❤️❤️❤️❤️

  • @gyunayify
    @gyunayify ปีที่แล้ว +2

    I didnt understand anything you said but this video helped me deploy ty :)

  • @lavanya_m01
    @lavanya_m01 ปีที่แล้ว +1

    Thanks a ton!!! I've been struggling for a while with deployment and your video helped :)

  • @aryanpinto5105
    @aryanpinto5105 ปีที่แล้ว +3

    Thank you sooo much for this video!!!❤ Was worried about the deployment part of my application but this video was a blessing in disguise. Once again thanx.🙏

    • @GideonOtuka
      @GideonOtuka ปีที่แล้ว

      I'm getting 404: NOT_FOUND when I try to deploy the server folder

    • @OganicaBean
      @OganicaBean ปีที่แล้ว

      I have the same 404 error.

    • @GideonOtuka
      @GideonOtuka ปีที่แล้ว

      Check if you have a path with just "/". If you don't, make one with a message to display then everything should be okay. That was my own problem

  • @dionisiocarovasquez9125
    @dionisiocarovasquez9125 ปีที่แล้ว

    Thanks brother, after trying many tutorials, yours was the one that worked for me. Greetings from Colombia

    • @tuattrananh
      @tuattrananh  11 หลายเดือนก่อน

      Glad it's useful to you

  • @sandip_kanzariya8476
    @sandip_kanzariya8476 ปีที่แล้ว +1

    Working Man
    Awesome
    Thanks

  • @pokotyec
    @pokotyec ปีที่แล้ว +4

    Very grateful. Please do a tutorial on React, Node, and Postgres on Vercel.

  • @basurabasura
    @basurabasura ปีที่แล้ว +1

    This was really useful, thank you so much. Exactly what I needed

  • @Hyp3rX360
    @Hyp3rX360 ปีที่แล้ว

    thanks a lot!! very relevant for my case now!

  • @netsaosa4973
    @netsaosa4973 2 ปีที่แล้ว

    thx bro out of 3 vercel tutorials this one worked 👍

    • @tuattrananh
      @tuattrananh  2 ปีที่แล้ว +1

      👍👍👍

    • @anupkumardutta_6196
      @anupkumardutta_6196 ปีที่แล้ว

      @tuattrananh i am getting 494 error page after deploying server

  • @_elusivex_
    @_elusivex_ ปีที่แล้ว

    This video was helpful, thanks!

    • @tuattrananh
      @tuattrananh  ปีที่แล้ว

      ❤️❤️❤️❤️

  • @shubhamsinghvi9338
    @shubhamsinghvi9338 ปีที่แล้ว +1

    Amazing video...Thanks

  • @chrtravels
    @chrtravels ปีที่แล้ว

    Thanks for the video. Nice to see you can deploy the backend and front end, separately, from the same repo.
    I originally tried this on Netlify before realizing they don't support a traditional backend. It looks like Vercel also does not recommend this. They suggest using serverless functions, probably because this supports their business model. However for now, it looks like this can still be accomplished.
    I probably wouldn't do a product app like this but for a portfolio project I think it's ok.

  • @gorank777
    @gorank777 ปีที่แล้ว

    Thanks for this video, you got a new subscriber! :)

    • @tuattrananh
      @tuattrananh  ปีที่แล้ว +1

      thank you so much ❤️

  • @Jade_Hanson
    @Jade_Hanson ปีที่แล้ว

    Thanks a bunch this helped a lot.

  • @BeyondTheLog108
    @BeyondTheLog108 ปีที่แล้ว +1

    backend not deployed showing 'page not found'😪

  • @hamzahassan2933
    @hamzahassan2933 ปีที่แล้ว

    Thank you sooo much for this video brooo

  • @nagarajutirumani8760
    @nagarajutirumani8760 ปีที่แล้ว

    Thanks for the video.

  • @iamakashkumarram
    @iamakashkumarram ปีที่แล้ว +1

    When your next video coming and which topic?

  • @Pagegift
    @Pagegift ปีที่แล้ว

    This is amazing video, you are a very good teacher! I will give you a like and subscribe to your channel.

  • @mfaiz6
    @mfaiz6 ปีที่แล้ว +2

    what is version 2 at 8:15 ???

  • @iamakashkumarram
    @iamakashkumarram ปีที่แล้ว +1

    Sir when your next video coming?

  • @renjithroy8422
    @renjithroy8422 ปีที่แล้ว +1

    I do not use a db. Req is made from frontend to express server. How do I connect this in the last step?

  • @MuhammedRamees-kl7py
    @MuhammedRamees-kl7py ปีที่แล้ว

    really useful 🤩🤩

    • @tuattrananh
      @tuattrananh  11 หลายเดือนก่อน

      thank you

  • @sagarsharma007
    @sagarsharma007 ปีที่แล้ว

    it helped thanks a lot

  • @AlexanderBogdanov-dw6cw
    @AlexanderBogdanov-dw6cw ปีที่แล้ว

    Thank you for the video! Please tell me, if I wrote a backend on Nest, a database on Mongo_DB, how to deploy it?

  • @_7Spike_
    @_7Spike_ ปีที่แล้ว +3

    I got cors error allow origin not defined

    • @dontpealmyonion
      @dontpealmyonion 3 หลายเดือนก่อน

      yup same

    • @_7Spike_
      @_7Spike_ 3 หลายเดือนก่อน

      ​​​@@dontpealmyonion I got resolved that error you can't deploy your server on vercel it's only available for static sites like client frontend deploy your server on render than use that url to call an api from frontend and deploy your frontend on vercel

  • @thanhnt612
    @thanhnt612 ปีที่แล้ว

    Hay quá bạn ơi. Cảm ơn rất nhiều !!!!!!

    • @tuattrananh
      @tuattrananh  ปีที่แล้ว

      ❤️❤️❤️❤️

  • @svnbeats6700
    @svnbeats6700 6 หลายเดือนก่อน

    Im having a similar issue my backend is deployed to vercel but somewhere on the frontend im still targeting localhost instead of the deployment url and idk where lol its starting to aggravate me at this point

  • @nirmalapusparatna8940
    @nirmalapusparatna8940 8 หลายเดือนก่อน +1

    thanks a lot, but why when I reload or window.onreload it turns 404: NOT_FOUND

  • @aayushshah459
    @aayushshah459 4 หลายเดือนก่อน

    i don't have api folder in my src folder with their private.cilent.js and public.cilent.js for my project. Should i create new one?

  • @nguyenngockhoa6529
    @nguyenngockhoa6529 ปีที่แล้ว +1

    Hello anh
    em đang là sinh viên và có một dự án Mern stack
    em up theo anh thì nó chỉ lên được fe còn be thì lại không kết nối được
    anh có thể giúp em được không

  • @dotgilchrist3168
    @dotgilchrist3168 ปีที่แล้ว +1

    You didn't explain where you found the TMDB_BASE_URL or the TMDB_key? or is that something we make up

    • @tuattrananh
      @tuattrananh  ปีที่แล้ว

      th-cam.com/video/j-Sn1b4OlLA/w-d-xo.html

    • @abrarhussain_00
      @abrarhussain_00 ปีที่แล้ว

      did you figure this out?

  • @muzammila4243
    @muzammila4243 4 หลายเดือนก่อน

    I did as you did but it shows a 404 page not found can you help me with that

  • @coa51pakshalshah22
    @coa51pakshalshah22 5 หลายเดือนก่อน

    Im getting 500 internal server error , while in local host i recieve no 500 status code error for anything ? can anyone help here

  • @HoangAnhNguyen-gt3nr
    @HoangAnhNguyen-gt3nr ปีที่แล้ว

    10:20 sao đoạn này nó báo 504: gateway_timeout nhỉ

  • @thesannchu
    @thesannchu ปีที่แล้ว

    Do you know if the bandwidth that the frontend and backend will use to communicate, will consume the bandwidth offered by Vercel, or if both are hosted in Vercel it will not consume bandwidth?

  • @mohitrobbin5401
    @mohitrobbin5401 8 หลายเดือนก่อน

    Please tell me the theme you are using on bsvode

  • @Person-p1c
    @Person-p1c ปีที่แล้ว

    How it is mern app if can't deploy it as single project just like we do on heroku

  • @tinnguyen9651
    @tinnguyen9651 2 ปีที่แล้ว +1

    Have you deployed web fullstack with React Js (Front-end) and Sailjs(Backend)? Can you help me deploy Sailsjs ?

  • @futgaming17
    @futgaming17 ปีที่แล้ว

    Very useful

  • @alikhanbulat2150
    @alikhanbulat2150 7 หลายเดือนก่อน

    Cannot read properties of undefined (reading 'data') How can i fix?

  • @jingli9232
    @jingli9232 ปีที่แล้ว

    thx, but how do you know what to add as suffix for deployed api

  • @shikharawat4086
    @shikharawat4086 ปีที่แล้ว +1

    HI,
    So in config file(environment variables) I am saving FRONTEND_URL and BACKEND_URL so that I can take it to configure cors, passport etc.
    While deploying backend to vercel, what should I add these values in environment variables? Any Idea?
    What I did:
    First I deployed frontend and pasted the FRONTEND_URL as the environment variable while deploying backend, but what should I do for BACKEND_URL field.
    Thanks in advance for the help!!!!!!!!!!

    • @tuattrananh
      @tuattrananh  ปีที่แล้ว

      I don't understand your problem??

  • @Archverze_Life
    @Archverze_Life ปีที่แล้ว

    do you know Rasa NLU?, I just wanted to ask if I can deploy my mern with Rasa NLU ?

  • @ayoubdev8019
    @ayoubdev8019 2 ปีที่แล้ว

    thank u so much

  • @alexpeev9
    @alexpeev9 ปีที่แล้ว

    Have you thought about a way to deploy the server and the client on one vercel instance?
    I tried several ways, but i don't think that it is possible.

  • @true227
    @true227 10 หลายเดือนก่อน +2

    don`t use version anymore, it's deprecated

  • @haian_
    @haian_ ปีที่แล้ว

    Please create portfolio with next js 13, tailwind and Sanity

    • @_elusivex_
      @_elusivex_ ปีที่แล้ว

      See JavaScript Mastery channel

  • @tukukode
    @tukukode ปีที่แล้ว

    thank you so much

    • @tuattrananh
      @tuattrananh  ปีที่แล้ว

      ❤️❤️❤️❤️

  • @sanmurdetpierre4020
    @sanmurdetpierre4020 ปีที่แล้ว

    🔥🔥🔥🔥🔥

  • @prajwalurkude007
    @prajwalurkude007 ปีที่แล้ว

    my website is deployed but chrome marked it as a deceptive site ahead, how did you bypass it?
    ps: found the solution, the Netflix clone domain name mislead the google to interpret that I am impersonating as Netflix web app, thus marked as phishing malicious site.

  • @MunibDalati
    @MunibDalati ปีที่แล้ว

    everything is worked but I can't see the data coming from MongoDB!

  • @aditibhatt7845
    @aditibhatt7845 ปีที่แล้ว

    Am I the only one who getting this error - "No Output Directory named "public" found after the Build completed. You can configure the Output Directory in your Project Settings." ?

  • @Spkntei
    @Spkntei ปีที่แล้ว

    Cho em hỏi là anh mất bao lâu để hoàn thành project này vậy ạ

  • @melaku7
    @melaku7 ปีที่แล้ว

    i use the same steps but i can't connect with the database what is the issue

    • @tuattrananh
      @tuattrananh  11 หลายเดือนก่อน

      did you see the error message?

    • @melaku7
      @melaku7 11 หลายเดือนก่อน

      Error connecting to the database: Cannot read properties of undefined (reading 'admin')
      @@tuattrananh

  • @emvoinamdinh
    @emvoinamdinh ปีที่แล้ว

    Thanks bro

  • @huynq24
    @huynq24 ปีที่แล้ว

    Em deploy lên vercel nhưng api của em trả về "You need to enable JavaScript to run this app" là sao anh nhỉ ? Em cảm ơn

  • @OganicaBean
    @OganicaBean ปีที่แล้ว +1

    I’m getting 404 error code. Please help sir.

    • @MunibDalati
      @MunibDalati ปีที่แล้ว

      th-cam.com/video/9V5F-OnPsms/w-d-xo.html

  • @true227
    @true227 10 หลายเดือนก่อน

    guys, be careful name of the file is verCel, not verSel

    • @tuattrananh
      @tuattrananh  10 หลายเดือนก่อน

      where is "verSel"?

    • @true227
      @true227 10 หลายเดือนก่อน

      @@tuattrananh in my case

  • @asdrty123
    @asdrty123 ปีที่แล้ว

    y you dont have this repo in github

  • @anupkumardutta_6196
    @anupkumardutta_6196 ปีที่แล้ว +2

    Getting 404 page after deploying server

  • @dangkha1105
    @dangkha1105 ปีที่แล้ว

    Mình đã xem video và làm theo hd của bạn nhưng vẫn bị lỗi mà ko hiểu tại sao luôn. Nếu bạn đọc đc cmt này thì có thể hỗ trợ mình được ko?

  • @kienvan6780
    @kienvan6780 ปีที่แล้ว +1

    Sao mình toàn bị lỗi 404 nhỉ

  • @cuongtran-vv1hi
    @cuongtran-vv1hi ปีที่แล้ว

    anh sao em thử deploy be lên vercel làm theo như video anh. Mà bị 404 Not Found do sao ạ, em tìm các nguồn mà chưa fix đc ạ. Em cảm ơn anh

    • @chihaile3927
      @chihaile3927 ปีที่แล้ว

      bạn có cách giải quyết chưa, mình cũng gặp trường hợp 404 như bạn :

  • @ultrasoundaudio7844
    @ultrasoundaudio7844 ปีที่แล้ว

    I got the error after deploying the vercel.json, the error is 404

    • @MahimaDv
      @MahimaDv 5 หลายเดือนก่อน

      how did you resolve that?

  • @BestCoden
    @BestCoden 11 หลายเดือนก่อน

    500 error why?

  • @ankitsulakhe
    @ankitsulakhe 4 หลายเดือนก่อน

    It's completely free ?

  • @martinpasaribu4864
    @martinpasaribu4864 11 หลายเดือนก่อน

    Thanks

  • @uguur
    @uguur ปีที่แล้ว

    How did you manage to pass cors error ?

    • @tuattrananh
      @tuattrananh  ปีที่แล้ว

      app.use(cors()) in express

    • @uguur
      @uguur ปีที่แล้ว +1

      @@tuattrananh I did but already getting
      been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
      do i have a chance to make api url http ?

    • @lethitruc6794
      @lethitruc6794 ปีที่แล้ว

      @@uguur adding a origin = true
      app.use(cors({ credentials: true, origin: true }));

    • @Lotpite
      @Lotpite ปีที่แล้ว +1

      @@tuattrananh it doesnt work. I got the same issue

  • @fazalhakim11
    @fazalhakim11 5 หลายเดือนก่อน

    I follow your step by step but I get 404: NOT_FOUND

  • @NguyenVanA888
    @NguyenVanA888 ปีที่แล้ว

    ông nói tiếng anh như người việt bản địa z 🐧🐧🐧🐧

  • @yeabsratesfaye7012
    @yeabsratesfaye7012 ปีที่แล้ว

    opps it's not working

  • @BekzatTulebaev
    @BekzatTulebaev 5 หลายเดือนก่อน

    your page configuration page is not exist👎

  • @throwawayaccount5464
    @throwawayaccount5464 4 หลายเดือนก่อน

    can't u just talk a bit far away from the mic man.....

  • @bdan-xs3qe
    @bdan-xs3qe ปีที่แล้ว +1

    I tried your method after doing my method still getting error 404 after deploying backend in vercel...please help me
    ​@Tuat Tran Anh

  • @nextgendev83
    @nextgendev83 ปีที่แล้ว

    Thanks mate you helped me a lot 🫱

  • @mahendrabishnoi716
    @mahendrabishnoi716 2 ปีที่แล้ว +1

    bro how can i contact you I'm Facing Error in your Project?

  • @hoainhannguyenphan5318
    @hoainhannguyenphan5318 ปีที่แล้ว +2

    B ơi có thể giúp mình được không? mình deploy lên vercel thì bị lỗi này, mong bạn giúp mình, mình cảm ơn nhiều lắm.
    404: NOT_FOUND
    Code: NOT_FOUND
    ID: sin1::8bjrc-1683094520229-3b89ec3c0e9a

    • @EventLoopHero
      @EventLoopHero ปีที่แล้ว

      ohh...i have the same problem and really can't figure out what's going on 🤯

    • @puahwankoon9227
      @puahwankoon9227 5 หลายเดือนก่อน

      Same here! I tried to add vercel.json in my frontend, add below code in
      {
      "rewrites": [
      { "source": "/(.*)", "destination": "/" }
      ]
      }
      , and the issue fixed, not sure this is the correct way but u can try when facing same error here.