How to Deploy MERN Application on Vercel? HOST Full-Stack MERN App to Vercel for Free

  Рет қаралды 163,657

Code With Yousaf

Code With Yousaf

Күн бұрын

Пікірлер: 210
@MdArif-pc9bz
@MdArif-pc9bz Жыл бұрын
Finally, I deployed my first MERN STACK ❤ app by watching your video.. thanks a lot 😊🙃
@hannah51238
@hannah51238 10 ай бұрын
As always Yousaf, you read my mind and make a video for what it needs. Thanks dude!
@briankiprop7743
@briankiprop7743 Жыл бұрын
Hey man this was dope i have been struggling with deployments ever since Heroku took down their free tier , one of the best instructional videos i have seen on the internet
@simoncordova5655
@simoncordova5655 Жыл бұрын
I currently find myself in the exact same position lol
@micnguyen
@micnguyen Жыл бұрын
Thank you so much Mr. Yousaf, I was trying to deploy my project using Firebase but the backend wasn't working properly, your video is very helpful and I was able to deploy it now with Vercel! Thank you so much again!
@andreavicari2159
@andreavicari2159 Жыл бұрын
This Video is GOLD, the only one that Works!! Many Thanks 👏🎉 FOR OTHER USER: I tried and work fine ONLY, follow carefully the instructions. A masterpiece this video 🎩
@golukaintura-u3h
@golukaintura-u3h Жыл бұрын
thanks man i struggle lot's for 5 hours to just deploy a mern stack app you are the one who solved my error thanks man
@why_not01
@why_not01 9 ай бұрын
How you do that , i am facing issue can you please help me , i use vercel and my backend give 404 error please help me
@_lessthanzero_
@_lessthanzero_ 8 ай бұрын
@@why_not01 have u named the entry point file of the backend as index.js ? i resolved it like that. I has named it as server.js where all routes were then i changed it to index.js it worked
@devmadaan5146
@devmadaan5146 7 ай бұрын
I am struggling for 2 days now, It gives 504 error for my backend
@nicobustelo
@nicobustelo 6 ай бұрын
te amo hno
@VinayKotiya
@VinayKotiya 2 ай бұрын
Thank you sir , I deploy my first MERN crud operation performing project on vercel😊
@arunnishad7733
@arunnishad7733 2 ай бұрын
Bhai kaise hua maine deploy kiya hua hai but jab post request mara maine contact pe toh detail save nhi ho paa rahi hai provide solution
@VinayKotiya
@VinayKotiya 2 ай бұрын
@@arunnishad7733 ok i will help you send me your github repository url
@VijenderChimma
@VijenderChimma Жыл бұрын
bro i have created amother one trying to deploy it but is is showing 404 not found what i have to do i created vercel.json in server side pasted same code you written in vercel.json
@samuellucas593
@samuellucas593 10 ай бұрын
lol bro your dp has been my desktop image since i started dev.
@shivanisinha787
@shivanisinha787 Жыл бұрын
This video was so helpful. I was getting problem in deploying my MERN project. But your video made it so easy for me to deploy the project. Thanks a lot.☺
@codewithyousaf
@codewithyousaf Жыл бұрын
🙏
@abhipathania2772
@abhipathania2772 Жыл бұрын
Finally I deployed my first MERN Application by your video thanks a lot ❤
@why_not01
@why_not01 9 ай бұрын
How you do that , i am facing issue can you please help me , i use vercel and my backend give 404 error please help me
@adityakhajone250
@adityakhajone250 4 ай бұрын
@@why_not01 same issue with me also
@gedeonagmas
@gedeonagmas Жыл бұрын
this is the only video that worked for me. thanks a lot!!
@why_not01
@why_not01 9 ай бұрын
How you do that , i am facing issue can you please help me , i use vercel and my backend give 404 error please help me
@shoaibhasan4026
@shoaibhasan4026 Жыл бұрын
I faced issues while deploying my mern project. Thanks for helping me ❤
@why_not01
@why_not01 9 ай бұрын
How you do that , i am facing issue can you please help me
@HieuNguyen-vn9vm
@HieuNguyen-vn9vm 4 ай бұрын
I got a cors error in the server side uploads folder, it can't make a GET request with these image files. Any ideas how to fix it?
@monke3043
@monke3043 4 ай бұрын
where ur image files are stored?
@HieuNguyen-vn9vm
@HieuNguyen-vn9vm 4 ай бұрын
@@monke3043 an uploads folder located in the root path
@onoseogbidi3830
@onoseogbidi3830 4 ай бұрын
Thank you for such an amazing video. It was a great guide to also deploy my app .
@Pagegift
@Pagegift Жыл бұрын
Thank you for excellent tutorial, bro! Especially thanks for deploying FULL STACK app.
@why_not01
@why_not01 9 ай бұрын
How you do that , i am facing issue can you please help me , i use vercel and my backend give 404 error please help me
@bilalrasheed8272
@bilalrasheed8272 Жыл бұрын
Bro what about Build (npm run build) Do you skipped it or we dont have to do that
@JoonasKarp
@JoonasKarp Жыл бұрын
Yeah i want to know it also, did you figure it out!
@shivdix
@shivdix 2 ай бұрын
no req vercel do it own
@rupalsharma9948
@rupalsharma9948 Жыл бұрын
I am getting error 404: Not found on deploying the server. I have created the same vercel.json file as yours. My server contains app.js instead of index.js. how can I solve this issue?
@imempire69
@imempire69 Жыл бұрын
I am having the same problem in server side only with post method.. I can't use post method:(
@mostbeautifulpsychopath3876
@mostbeautifulpsychopath3876 Жыл бұрын
i have the same issue how did you do if you found a solution please tell us
@akpofure9903
@akpofure9903 Жыл бұрын
@@imempire69same how did you solve it?
@simonftwi4726
@simonftwi4726 Жыл бұрын
i am having the same problem, anyone of you guys solve the issue
@harshdangi6289
@harshdangi6289 Жыл бұрын
I am having the same issue, did u solve it yet?
@vikrams788
@vikrams788 11 ай бұрын
Thanks a lot, this video perfectly covers everything
@mix_mash3703
@mix_mash3703 10 ай бұрын
Brother , I'm facing some challanges while deploying as I'm using express-session for my authentication in MERN app and cookies are not getting stored in browser in production environment but working fine in local environment
@thrifterspoint1002
@thrifterspoint1002 7 ай бұрын
who getting 404 the issue in vercel.json file it should b backend root directory if still error double check verscel.json code and those who facing error cors error or not getting data from database on calling backend api just go to your database under network access tab allow ur database ip address from everywhere.
@ChandanKumarYadav-w4j
@ChandanKumarYadav-w4j 3 күн бұрын
after following the video instructions if any one gets an error they should follow this comment instruction it will work
@markbtesh9485
@markbtesh9485 Жыл бұрын
hey thanks for the tutorial. im still getting a CORS blocking error (No 'Access-Control-Allow-Origin' header is present) when i make a post request, i followed the way you did it and added the cors origin domain and its still giving me issues. any ideas?
@saurabhtambolkar3406
@saurabhtambolkar3406 Жыл бұрын
bro same here did u got the solution
@mudhamvineethkumar5873
@mudhamvineethkumar5873 Жыл бұрын
iam also got same error @@saurabhtambolkar3406
@feareeper494
@feareeper494 11 ай бұрын
Hey did you figure this out? I have the same issue
@aronstone4905
@aronstone4905 11 ай бұрын
did u got the solution
@bilalillahi6347
@bilalillahi6347 6 ай бұрын
I am facing same cors error again and again. Did you get the Solution?
@ashoknandurka7204
@ashoknandurka7204 10 ай бұрын
What if i use mangodb docker container to connect to db ?
@codewithyousaf
@codewithyousaf 10 ай бұрын
try it.
@krupapatel3769
@krupapatel3769 Жыл бұрын
The vercel app says while deployment build cache uploaded: 1.405s what to do
@mohdkhaleeq7468
@mohdkhaleeq7468 7 ай бұрын
I am using mongo db compass instead of mongo atlas is it work if i follow all deployment steps
@mohd.irfanlohar4544
@mohd.irfanlohar4544 7 ай бұрын
No brother you should have to use mongo db atlas because it's a cloud technology and mongo db compass is just a GUI for mongo db database which is present on your local machine.
@bilalillahi6347
@bilalillahi6347 6 ай бұрын
No, it is local to you only.
@rajatshukla2605
@rajatshukla2605 11 ай бұрын
Thank you this was very helpful!
@victoremanoel8114
@victoremanoel8114 9 ай бұрын
My server show 404 not found. I've already entered the domains and atlas is allowing all the ips
@codewithyousaf
@codewithyousaf 9 ай бұрын
I will upload a video. Everything will be OK
@JayaprasadB-px4vc
@JayaprasadB-px4vc Жыл бұрын
uploading file on git hub directly selecting file or drag and drop right.
@webdevtutorials6579
@webdevtutorials6579 Жыл бұрын
No matter how much i try to get rid of CORS error, doesn't work
@codewithyousaf
@codewithyousaf Жыл бұрын
The CORS error occured on vercel or on local machine also
@sykbot
@sykbot Жыл бұрын
Yes same for me, dont know why ? Not able to debug it In local it works fine, but on Vercel its giving Error
@Ramya-zp7ew
@Ramya-zp7ew Жыл бұрын
Sameeee @@sykbot
@mohd.irfanlohar4544
@mohd.irfanlohar4544 7 ай бұрын
Too much helpful jus have one doubt actually my folder is like this inside frontend or react app folder I have backend folder so shall I continue with that I have to use folder structure like yours
@Yonatan2479
@Yonatan2479 11 ай бұрын
VERY GOOD TUTORIAL THANK YOU VERY MUCH
@prince-k6586
@prince-k6586 Ай бұрын
can this work if my server and client are in the same folder?
@thoranchandramuvvala8128
@thoranchandramuvvala8128 29 күн бұрын
Everything got deployed but database connection is not getting established. Could anyone please help mee
@darkexcalibur2999
@darkexcalibur2999 8 ай бұрын
But the problem is you are running 2 servers, which is not efficient. For 1 project you are running two different servers, how can you deal with that
@AshutoshYadav-r5p
@AshutoshYadav-r5p Жыл бұрын
Hi @codewithyousaf, I am getting errors while using vite.config.js on the client side, can you please mention your client-side vite.config.js code content here. Also, how are you able to take index.html out of the public folder on the client side and not get an error if you are running with react-script. Anyone please reply if you know how to handle this issue, I am stuck and not able to deploy.
@codewithyousaf
@codewithyousaf Жыл бұрын
github.com/YousafKhan1/Deploy_MERN
@AshutoshYadav-r5p
@AshutoshYadav-r5p Жыл бұрын
Thanks @@codewithyousaf will try and update soon.
@hanifahabib-k7u
@hanifahabib-k7u 4 ай бұрын
i have question i have multiple pages so should I have to add API URL on each page ?
@monke3043
@monke3043 4 ай бұрын
You should have created a configuration file in which the URL is assigned to a variable and exported. Then, you can import it on all the pages where needed. This will make your work easier, as you will only need to update the link in the configuration file.
@adityakhajone250
@adityakhajone250 4 ай бұрын
I have got 404: Not found error when I deployed backend file what should I do sir?
@ankijitroy4786
@ankijitroy4786 11 ай бұрын
i still get the cors error
@Rakesh._bhai
@Rakesh._bhai 5 ай бұрын
Bro run npm cors in terminal and fixed that
@white-listochechki
@white-listochechki 9 ай бұрын
can you please help ? im getting the index.js code back by visiting the server page
@madhanarjun4767
@madhanarjun4767 Жыл бұрын
Bro I am getting npm run build error while deploying the frontend what to do
@GopiKumar-r9k
@GopiKumar-r9k Жыл бұрын
Hello Yousaf, I tried to deploy the project, I got issue. My issue is API is not running, It is showing index.js code only. Another issue is with frontend, initially it is displaying the login page and after refresh i am getting 404 error. Can you please help me asap
@eklavyasanmotra3371
@eklavyasanmotra3371 Жыл бұрын
if your server isn't running, maybe try giving access to any ip in database
@MrBunny-fr4dz
@MrBunny-fr4dz 2 ай бұрын
Bro still I'm getting Cors error! Could you please resolve it! I have written everything what you have written!
@adarshrajyadav4963
@adarshrajyadav4963 2 ай бұрын
ya same here i am also cors error don't what to do?
@bhupathinannu7098
@bhupathinannu7098 10 ай бұрын
I didn't use axios can i stills host??
@monishbk5612
@monishbk5612 Жыл бұрын
What ever I do I'm getting the cors error in my application
@joshualazar40
@joshualazar40 Жыл бұрын
Your video on multer for uploading images was very helpful, I now need to deploy my app that uses multer. How does this effect that process?
@adarshrajyadav4963
@adarshrajyadav4963 2 ай бұрын
Sir i am still getting cors error again and again
@sumukhasureban8249
@sumukhasureban8249 3 ай бұрын
I am getting CORS error after adding cors configuration
@codewithyousaf
@codewithyousaf 3 ай бұрын
in cors write app.use({ origin: "url of front-end that you hosted", credentials: true })
@ashokreddy2982
@ashokreddy2982 8 ай бұрын
Everything is correct but you missed giving ENV variables while hosting Backend....which I figured it out later.
@codewithyousaf
@codewithyousaf 8 ай бұрын
U R Right.
@ashokreddy2982
@ashokreddy2982 8 ай бұрын
@@codewithyousaf Thanks man you really made it soo simple and within one day i learnt how to host an Application myself with guidance of your video + some of my previous experiences learnt from my senior devs about changing APIs from local host to backend hosting path...
@arpitajain1526
@arpitajain1526 5 ай бұрын
How to give env while hosting backend
@sagarmoriya9773
@sagarmoriya9773 Жыл бұрын
dont know why adding frontend url then also getting cors errors
@AkinRumah
@AkinRumah 6 ай бұрын
Can express and react deploy with same domain?
@shabankhan4383
@shabankhan4383 Жыл бұрын
Bro , trying since a very long time , the cors error isn't solving for me . I'm dying
@codewithyousaf
@codewithyousaf Жыл бұрын
github.com/YousafKhan1/Deploy_MERN clone the project and try it
@bilalillahi6347
@bilalillahi6347 6 ай бұрын
Even for me, sad
@bilalillahi6347
@bilalillahi6347 6 ай бұрын
Did you solve it?
@santhiraju1836
@santhiraju1836 16 күн бұрын
Hi bro I've tried this and deployed perfectly, but database connection is lost, can you help me in this?
@codewithyousaf
@codewithyousaf 16 күн бұрын
where is the error?
@why_not01
@why_not01 9 ай бұрын
How you do that , i am facing issue can you please help me , i use vercel and my backend give 404 error please help me
@SurajX1100
@SurajX1100 Жыл бұрын
bro i am getting an error "this serverless function has crashed." please help
@sohaililyas5560
@sohaililyas5560 Жыл бұрын
allow all ip to access mongodb not just local ip
@motivationalmusic3721
@motivationalmusic3721 7 ай бұрын
Vercel is faster than render ?
@AdrianAlejandrino
@AdrianAlejandrino 4 ай бұрын
wow very nice video
@anasmehmood627
@anasmehmood627 8 ай бұрын
bro in my case main folder have store frontend and in main folder one have backend folder so how could i do it any one help me please remeber when i made a client folder and paste frontend file then coming error so please any one help me
@amankumargupta8365
@amankumargupta8365 7 ай бұрын
Have u resolve this prblm
@amankumargupta8365
@amankumargupta8365 7 ай бұрын
@anasmehmood627 have u solved it
@aboubakrghout8180
@aboubakrghout8180 8 ай бұрын
I got question to ask . Is there a way to change the domaine name for ur fronted app🤔
@codewithyousaf
@codewithyousaf 8 ай бұрын
You mean custom domain
@javatutorials6747
@javatutorials6747 5 ай бұрын
i am facing the error about the cross origin error
@j.villasmil9575
@j.villasmil9575 Жыл бұрын
Thanks my friend. What if my DB is local? I mean, I'm not using atlas, should I use it instead?
@Ai2025Batch
@Ai2025Batch 9 ай бұрын
for deploying you need connect with mongoDB atlas
@Dev-Phantom
@Dev-Phantom Жыл бұрын
on local machine app is working fine but on vercel in front end its giving cors error
@m.zulqarnainchohan7773
@m.zulqarnainchohan7773 Жыл бұрын
same i tried many times if you find any solution share with me
@MrSIVA-uy4bx
@MrSIVA-uy4bx 11 ай бұрын
@@m.zulqarnainchohan7773 same problem facing how can i fix it
@bilalillahi6347
@bilalillahi6347 6 ай бұрын
Same error, Did you resolve it by now?
@VikramRathod-f4g
@VikramRathod-f4g Жыл бұрын
would it be still work if i use mongodb compas instread atlas?
@RohitKumar-qh5bq
@RohitKumar-qh5bq Жыл бұрын
mongodb compass is a visualiser whereas mongodb atlas is a database service used to store db
@codewithyousaf
@codewithyousaf Жыл бұрын
Yeah it will work compass is a GUI tool for managing data
@ruthra5398
@ruthra5398 Жыл бұрын
I am getting 404 error after deploy?
@LokeshPrajapati-e5c
@LokeshPrajapati-e5c 9 ай бұрын
can we upload file like pdf and img on vercel deployment
@sai-lb7ii
@sai-lb7ii Жыл бұрын
bro can you do the class on cart section the selected products should display in the cart page bro
@codewithyousaf
@codewithyousaf Жыл бұрын
I have a video for React JS. I didn't use backend that is just Front-end I made ecommerce app you can check that on my channel on first page.
@sai-lb7ii
@sai-lb7ii Жыл бұрын
@@codewithyousaf do it from backend only i selected the cart items after that only i did not get items selected to display selected products display
@codewithyousaf
@codewithyousaf Жыл бұрын
@@sai-lb7ii Maybe I create a video in the future full-stack ecommerce
@sai-lb7ii
@sai-lb7ii Жыл бұрын
@@codewithyousaf try to do soon 🔜 I have pending on this bro really bro I am waiting for since one month onwards bro
@aditibhatt7845
@aditibhatt7845 Жыл бұрын
@@sai-lb7ii Yes place make one I have the same problem
@WebAppMeta
@WebAppMeta Жыл бұрын
Hey yousaf . thank you for the video. my problems when I tried to deploy api folder: Invalid request: `builds[0]` should NOT have additional property `user`. Please remove it. Please help
@JoonasKarp
@JoonasKarp Жыл бұрын
How to do it without github ? Just git
@NoumanKhan-ck7vx
@NoumanKhan-ck7vx 11 ай бұрын
help get api working but login isnot
@giomeskhoradze9994
@giomeskhoradze9994 4 ай бұрын
can you give src for this application?
@md.al-amin9670
@md.al-amin9670 Жыл бұрын
i have some downloaded video and tell me how to make api/crud.
@codewithyousaf
@codewithyousaf Жыл бұрын
You want to create API using node js.
@ghulammohiyuddin387
@ghulammohiyuddin387 Жыл бұрын
Great help
@aryanmaheshwari1006
@aryanmaheshwari1006 Жыл бұрын
how to get cors orgin url ?
@codewithyousaf
@codewithyousaf Жыл бұрын
the name you assigned you app like ecomerce.vercel.com
@ayushwaghe4038
@ayushwaghe4038 9 ай бұрын
You should have given the git link difficult to copy things from video!
@dhruvkumarroy892
@dhruvkumarroy892 4 ай бұрын
you are the man
@himasailagonugunta2758
@himasailagonugunta2758 8 ай бұрын
i am getting cors error .. any help please
@codewithyousaf
@codewithyousaf 8 ай бұрын
did you put front-end URL inside Cors()
@redbama30
@redbama30 7 ай бұрын
You saved me bro
@Udit_singh
@Udit_singh 3 ай бұрын
bina build command ke kaise deploy krdiya bhai tune or env variable ka kya usko public rakhe 🤣🤣🤣🤣
@codewithyousaf
@codewithyousaf 3 ай бұрын
Vercel automatically runs the build command
@Udit_singh
@Udit_singh 3 ай бұрын
@@codewithyousaf mere error hi build command mai aari hai bhai kaise auomatically krdega
@codewithyousaf
@codewithyousaf 3 ай бұрын
@@Udit_singh aj my ny ik aur video banalya MERN stack how to deploy it on vercel whatch it. I will publish it after one hour. when you are deploying there is a dropdown for "Build and Output Setting"
@DevanshuAugusty
@DevanshuAugusty 22 күн бұрын
thanx man
@MrSIVA-uy4bx
@MrSIVA-uy4bx 11 ай бұрын
hi bro apis are deploy sucessfully in vercel bro. but after deployed apis are intigrated the front end code in reactjs cors error is comming how can i fix it bro tell me bro
@alfaloverss3116
@alfaloverss3116 8 ай бұрын
cors block hi aa raha hai
@himasailagonugunta2758
@himasailagonugunta2758 8 ай бұрын
same your error resolved?
@alfaloverss3116
@alfaloverss3116 8 ай бұрын
@@himasailagonugunta2758 nhi tumhara hua ????
@vashakir2452
@vashakir2452 Жыл бұрын
thanks alot
@developerstring
@developerstring Жыл бұрын
Hey Yousaf, could you please help to deploy my MERN app.
@masterjodu6410
@masterjodu6410 Жыл бұрын
thanks
@siddhant56
@siddhant56 9 ай бұрын
can you share the source code
@Roozikhan565
@Roozikhan565 Жыл бұрын
❤🎉❤
@ojasshukla1501
@ojasshukla1501 Жыл бұрын
Diplaaaayyyy😂
@muhammadalamzebmahar
@muhammadalamzebmahar 4 ай бұрын
You tried your best but you are not good at English why don't you just your native language to communicate it would be better approach I believe.
@mymemories8565
@mymemories8565 9 ай бұрын
cool
@FalcoAMV
@FalcoAMV 5 ай бұрын
ERROR 404
@SurajX1100
@SurajX1100 Жыл бұрын
please help
@aruha2847
@aruha2847 Жыл бұрын
how to hide the password?
@Curiousdev01
@Curiousdev01 Жыл бұрын
add to .env file
@AdrianAlejandrino
@AdrianAlejandrino 4 ай бұрын
int i = 1;
@sachinvarma9949
@sachinvarma9949 7 ай бұрын
ok
@Nyzz12
@Nyzz12 4 ай бұрын
s
@AsterixAstrix
@AsterixAstrix 11 ай бұрын
so trashy.
@throwawayaccount5464
@throwawayaccount5464 5 ай бұрын
learn to speak more clearly dude work with your pronunciation
@Dev-Phantom
@Dev-Phantom Жыл бұрын
mine is giving unlimited cors error
@Dev-Phantom
@Dev-Phantom Жыл бұрын
at least you should have attached the repo of this code man.
@Dev-Phantom
@Dev-Phantom Жыл бұрын
at least send the repository
@codewithyousaf
@codewithyousaf Жыл бұрын
github.com/YousafKhan1/Deploy_MERN
Build a Full Stack App in 3 Minutes
3:41
Deno
Рет қаралды 25 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
Samsung S25 Ultra Hands On - The New Era
17:06
Mrwhosetheboss
Рет қаралды 680 М.
How to Deploy a ReactJS and NodeJS app with Vercel!
14:55
Angeltheesoto
Рет қаралды 57 М.
Deploy your MERN app (Node & React) to Render & Netlify
8:20
WebDevMania
Рет қаралды 51 М.
No Code App Development is a Trap
9:31
Coding with Dee
Рет қаралды 366 М.
NEW Galaxy S25 Ultra (What Did Samsung Do?)
13:21
Mike O'Brien
Рет қаралды 3,4 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН