Finally, I deployed my first MERN STACK ❤ app by watching your video.. thanks a lot 😊🙃
@hannah5123810 ай бұрын
As always Yousaf, you read my mind and make a video for what it needs. Thanks dude!
@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 Жыл бұрын
I currently find myself in the exact same position lol
@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 Жыл бұрын
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 Жыл бұрын
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_not019 ай бұрын
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_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
@devmadaan51467 ай бұрын
I am struggling for 2 days now, It gives 504 error for my backend
@nicobustelo6 ай бұрын
te amo hno
@VinayKotiya2 ай бұрын
Thank you sir , I deploy my first MERN crud operation performing project on vercel😊
@arunnishad77332 ай бұрын
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
@VinayKotiya2 ай бұрын
@@arunnishad7733 ok i will help you send me your github repository url
@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
@samuellucas59310 ай бұрын
lol bro your dp has been my desktop image since i started dev.
@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 Жыл бұрын
🙏
@abhipathania2772 Жыл бұрын
Finally I deployed my first MERN Application by your video thanks a lot ❤
@why_not019 ай бұрын
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
@adityakhajone2504 ай бұрын
@@why_not01 same issue with me also
@gedeonagmas Жыл бұрын
this is the only video that worked for me. thanks a lot!!
@why_not019 ай бұрын
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 Жыл бұрын
I faced issues while deploying my mern project. Thanks for helping me ❤
@why_not019 ай бұрын
How you do that , i am facing issue can you please help me
@HieuNguyen-vn9vm4 ай бұрын
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?
@monke30434 ай бұрын
where ur image files are stored?
@HieuNguyen-vn9vm4 ай бұрын
@@monke3043 an uploads folder located in the root path
@onoseogbidi38304 ай бұрын
Thank you for such an amazing video. It was a great guide to also deploy my app .
@Pagegift Жыл бұрын
Thank you for excellent tutorial, bro! Especially thanks for deploying FULL STACK app.
@why_not019 ай бұрын
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 Жыл бұрын
Bro what about Build (npm run build) Do you skipped it or we dont have to do that
@JoonasKarp Жыл бұрын
Yeah i want to know it also, did you figure it out!
@shivdix2 ай бұрын
no req vercel do it own
@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 Жыл бұрын
I am having the same problem in server side only with post method.. I can't use post method:(
@mostbeautifulpsychopath3876 Жыл бұрын
i have the same issue how did you do if you found a solution please tell us
@akpofure9903 Жыл бұрын
@@imempire69same how did you solve it?
@simonftwi4726 Жыл бұрын
i am having the same problem, anyone of you guys solve the issue
@harshdangi6289 Жыл бұрын
I am having the same issue, did u solve it yet?
@vikrams78811 ай бұрын
Thanks a lot, this video perfectly covers everything
@mix_mash370310 ай бұрын
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
@thrifterspoint10027 ай бұрын
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-w4j3 күн бұрын
after following the video instructions if any one gets an error they should follow this comment instruction it will work
@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 Жыл бұрын
bro same here did u got the solution
@mudhamvineethkumar5873 Жыл бұрын
iam also got same error @@saurabhtambolkar3406
@feareeper49411 ай бұрын
Hey did you figure this out? I have the same issue
@aronstone490511 ай бұрын
did u got the solution
@bilalillahi63476 ай бұрын
I am facing same cors error again and again. Did you get the Solution?
@ashoknandurka720410 ай бұрын
What if i use mangodb docker container to connect to db ?
@codewithyousaf10 ай бұрын
try it.
@krupapatel3769 Жыл бұрын
The vercel app says while deployment build cache uploaded: 1.405s what to do
@mohdkhaleeq74687 ай бұрын
I am using mongo db compass instead of mongo atlas is it work if i follow all deployment steps
@mohd.irfanlohar45447 ай бұрын
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.
@bilalillahi63476 ай бұрын
No, it is local to you only.
@rajatshukla260511 ай бұрын
Thank you this was very helpful!
@victoremanoel81149 ай бұрын
My server show 404 not found. I've already entered the domains and atlas is allowing all the ips
@codewithyousaf9 ай бұрын
I will upload a video. Everything will be OK
@JayaprasadB-px4vc Жыл бұрын
uploading file on git hub directly selecting file or drag and drop right.
@webdevtutorials6579 Жыл бұрын
No matter how much i try to get rid of CORS error, doesn't work
@codewithyousaf Жыл бұрын
The CORS error occured on vercel or on local machine also
@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 Жыл бұрын
Sameeee @@sykbot
@mohd.irfanlohar45447 ай бұрын
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
@Yonatan247911 ай бұрын
VERY GOOD TUTORIAL THANK YOU VERY MUCH
@prince-k6586Ай бұрын
can this work if my server and client are in the same folder?
@thoranchandramuvvala812829 күн бұрын
Everything got deployed but database connection is not getting established. Could anyone please help mee
@darkexcalibur29998 ай бұрын
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 Жыл бұрын
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 Жыл бұрын
github.com/YousafKhan1/Deploy_MERN
@AshutoshYadav-r5p Жыл бұрын
Thanks @@codewithyousaf will try and update soon.
@hanifahabib-k7u4 ай бұрын
i have question i have multiple pages so should I have to add API URL on each page ?
@monke30434 ай бұрын
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.
@adityakhajone2504 ай бұрын
I have got 404: Not found error when I deployed backend file what should I do sir?
@ankijitroy478611 ай бұрын
i still get the cors error
@Rakesh._bhai5 ай бұрын
Bro run npm cors in terminal and fixed that
@white-listochechki9 ай бұрын
can you please help ? im getting the index.js code back by visiting the server page
@madhanarjun4767 Жыл бұрын
Bro I am getting npm run build error while deploying the frontend what to do
@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 Жыл бұрын
if your server isn't running, maybe try giving access to any ip in database
@MrBunny-fr4dz2 ай бұрын
Bro still I'm getting Cors error! Could you please resolve it! I have written everything what you have written!
@adarshrajyadav49632 ай бұрын
ya same here i am also cors error don't what to do?
@bhupathinannu709810 ай бұрын
I didn't use axios can i stills host??
@monishbk5612 Жыл бұрын
What ever I do I'm getting the cors error in my application
@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?
@adarshrajyadav49632 ай бұрын
Sir i am still getting cors error again and again
@sumukhasureban82493 ай бұрын
I am getting CORS error after adding cors configuration
@codewithyousaf3 ай бұрын
in cors write app.use({ origin: "url of front-end that you hosted", credentials: true })
@ashokreddy29828 ай бұрын
Everything is correct but you missed giving ENV variables while hosting Backend....which I figured it out later.
@codewithyousaf8 ай бұрын
U R Right.
@ashokreddy29828 ай бұрын
@@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...
@arpitajain15265 ай бұрын
How to give env while hosting backend
@sagarmoriya9773 Жыл бұрын
dont know why adding frontend url then also getting cors errors
@AkinRumah6 ай бұрын
Can express and react deploy with same domain?
@shabankhan4383 Жыл бұрын
Bro , trying since a very long time , the cors error isn't solving for me . I'm dying
@codewithyousaf Жыл бұрын
github.com/YousafKhan1/Deploy_MERN clone the project and try it
@bilalillahi63476 ай бұрын
Even for me, sad
@bilalillahi63476 ай бұрын
Did you solve it?
@santhiraju183616 күн бұрын
Hi bro I've tried this and deployed perfectly, but database connection is lost, can you help me in this?
@codewithyousaf16 күн бұрын
where is the error?
@why_not019 ай бұрын
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 Жыл бұрын
bro i am getting an error "this serverless function has crashed." please help
@sohaililyas5560 Жыл бұрын
allow all ip to access mongodb not just local ip
@motivationalmusic37217 ай бұрын
Vercel is faster than render ?
@AdrianAlejandrino4 ай бұрын
wow very nice video
@anasmehmood6278 ай бұрын
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
@amankumargupta83657 ай бұрын
Have u resolve this prblm
@amankumargupta83657 ай бұрын
@anasmehmood627 have u solved it
@aboubakrghout81808 ай бұрын
I got question to ask . Is there a way to change the domaine name for ur fronted app🤔
@codewithyousaf8 ай бұрын
You mean custom domain
@javatutorials67475 ай бұрын
i am facing the error about the cross origin error
@j.villasmil9575 Жыл бұрын
Thanks my friend. What if my DB is local? I mean, I'm not using atlas, should I use it instead?
@Ai2025Batch9 ай бұрын
for deploying you need connect with mongoDB atlas
@Dev-Phantom Жыл бұрын
on local machine app is working fine but on vercel in front end its giving cors error
@m.zulqarnainchohan7773 Жыл бұрын
same i tried many times if you find any solution share with me
@MrSIVA-uy4bx11 ай бұрын
@@m.zulqarnainchohan7773 same problem facing how can i fix it
@bilalillahi63476 ай бұрын
Same error, Did you resolve it by now?
@VikramRathod-f4g Жыл бұрын
would it be still work if i use mongodb compas instread atlas?
@RohitKumar-qh5bq Жыл бұрын
mongodb compass is a visualiser whereas mongodb atlas is a database service used to store db
@codewithyousaf Жыл бұрын
Yeah it will work compass is a GUI tool for managing data
@ruthra5398 Жыл бұрын
I am getting 404 error after deploy?
@LokeshPrajapati-e5c9 ай бұрын
can we upload file like pdf and img on vercel deployment
@sai-lb7ii Жыл бұрын
bro can you do the class on cart section the selected products should display in the cart page bro
@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 Жыл бұрын
@@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 Жыл бұрын
@@sai-lb7ii Maybe I create a video in the future full-stack ecommerce
@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 Жыл бұрын
@@sai-lb7ii Yes place make one I have the same problem
@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 Жыл бұрын
How to do it without github ? Just git
@NoumanKhan-ck7vx11 ай бұрын
help get api working but login isnot
@giomeskhoradze99944 ай бұрын
can you give src for this application?
@md.al-amin9670 Жыл бұрын
i have some downloaded video and tell me how to make api/crud.
@codewithyousaf Жыл бұрын
You want to create API using node js.
@ghulammohiyuddin387 Жыл бұрын
Great help
@aryanmaheshwari1006 Жыл бұрын
how to get cors orgin url ?
@codewithyousaf Жыл бұрын
the name you assigned you app like ecomerce.vercel.com
@ayushwaghe40389 ай бұрын
You should have given the git link difficult to copy things from video!
@dhruvkumarroy8924 ай бұрын
you are the man
@himasailagonugunta27588 ай бұрын
i am getting cors error .. any help please
@codewithyousaf8 ай бұрын
did you put front-end URL inside Cors()
@redbama307 ай бұрын
You saved me bro
@Udit_singh3 ай бұрын
bina build command ke kaise deploy krdiya bhai tune or env variable ka kya usko public rakhe 🤣🤣🤣🤣
@codewithyousaf3 ай бұрын
Vercel automatically runs the build command
@Udit_singh3 ай бұрын
@@codewithyousaf mere error hi build command mai aari hai bhai kaise auomatically krdega
@codewithyousaf3 ай бұрын
@@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"
@DevanshuAugusty22 күн бұрын
thanx man
@MrSIVA-uy4bx11 ай бұрын
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
@alfaloverss31168 ай бұрын
cors block hi aa raha hai
@himasailagonugunta27588 ай бұрын
same your error resolved?
@alfaloverss31168 ай бұрын
@@himasailagonugunta2758 nhi tumhara hua ????
@vashakir2452 Жыл бұрын
thanks alot
@developerstring Жыл бұрын
Hey Yousaf, could you please help to deploy my MERN app.
@masterjodu6410 Жыл бұрын
thanks
@siddhant569 ай бұрын
can you share the source code
@Roozikhan565 Жыл бұрын
❤🎉❤
@ojasshukla1501 Жыл бұрын
Diplaaaayyyy😂
@muhammadalamzebmahar4 ай бұрын
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.
@mymemories85659 ай бұрын
cool
@FalcoAMV5 ай бұрын
ERROR 404
@SurajX1100 Жыл бұрын
please help
@aruha2847 Жыл бұрын
how to hide the password?
@Curiousdev01 Жыл бұрын
add to .env file
@AdrianAlejandrino4 ай бұрын
int i = 1;
@sachinvarma99497 ай бұрын
ok
@Nyzz124 ай бұрын
s
@AsterixAstrix11 ай бұрын
so trashy.
@throwawayaccount54645 ай бұрын
learn to speak more clearly dude work with your pronunciation
@Dev-Phantom Жыл бұрын
mine is giving unlimited cors error
@Dev-Phantom Жыл бұрын
at least you should have attached the repo of this code man.