How to deploy MERN project (NodeJS, React) using render and netlify. PART 2.

  Рет қаралды 6,280

git unemployed

git unemployed

8 ай бұрын

#MERN #deploy #web
This is part 2 explanation of, how to deploy the MERN stack project using render and netlify for free.
PART 1: • How to deploy MERN pro...
Download web.config file from here: drive.google.com/uc?export=do...
OR
drive.google.com/uc?export=do...
If you have any questions about this, let me know in the comment section.
And don't forget to subscribe to the channel.
Website: gitunemployed.netlify.app (only desktop)
Thank you.
Please let me know in the comment section if you need any kind of help.
or you can just ping me through LinkedIn
/ muhazahmed
Thank you.

Пікірлер: 30
@mep1tz
@mep1tz 3 ай бұрын
Thanks a lot bro!!! Subscribed!
@rohit.1232
@rohit.1232 5 ай бұрын
thanks bro your videos really help me.
@rohit.1232
@rohit.1232 5 ай бұрын
KZbinrs like you made us.
@gmanikanta6788
@gmanikanta6788 2 ай бұрын
Osm
@user-sg6yq9ez6u
@user-sg6yq9ez6u 7 ай бұрын
Thanks so much dude. I watched so many videos but none of them really worked. However, yours worked perfectly as you showed. One major problem for me was the CORS issue so I had to fix it by adding a custom middleware that I found from stack overflow. If you can, please explain how you did not face any issue regarding CORS.
@gitunemployed
@gitunemployed 7 ай бұрын
I prefer using Cors as a universal. app.use(cors()) or app.use(cors({ origin: 'example.com', // Allow requests from 'example.com' methods: 'GET,POST', PUT,PATCH,DELETE optionsSuccessStatus: 204 // Respond with a 204 status code for preflight requests }));
@fullstack-user-api
@fullstack-user-api Ай бұрын
Hi! I have deployed the front and backend in Render! Thank you! My app works well in the localhost but in the deployment I cannot get the user after logging with gmail...I am not working with websocket but I realized I got websocket failed I do not know if that is relevant. What am I doing wrong? thank you
@fullstack-user-api
@fullstack-user-api Ай бұрын
Hi, I cannot see a list of my deployments. When I go to the dashboard i see cards with different options to deploy but I cannot see my overview any longer...what I am doing wrong?
@gitunemployed
@gitunemployed Ай бұрын
Try creating a organisation and deploy inside that
@full-stack-user
@full-stack-user Ай бұрын
Hi! My MERN project has only 1 Github repo with 2 folders: Client and Server. May I deploy the backend and frontend only using Netlify? How? Why did you use Onrender (backend) and Netlify(frontend) instead of only using one of them for both back and front-end?
@gitunemployed
@gitunemployed Ай бұрын
No, you can't deploy your server side in netlify. Netlify supports only client side rendering. Or you can deploy both you client and server on render itself if you don't want to shift between platforms.
@full-stack-user
@full-stack-user Ай бұрын
​@@gitunemployed Thank you so much. I was 4 days trying to deploy both back/frontend in Netlify, now I understand everything and my site is correctly deployed. God bless you for your talent and for you to be successful in all what you do because you help others to improve. 🙂👍👍
@rochirivera6692
@rochirivera6692 7 ай бұрын
What about the data base? Does mongodb need any type of hosting?
@gitunemployed
@gitunemployed 7 ай бұрын
Nope. If you are using Atlas, it's enough for small projects.
@ranjitdevadiga6880
@ranjitdevadiga6880 2 ай бұрын
bro make a video deploying a site with cookies
@gitunemployed
@gitunemployed 2 ай бұрын
Sure
@developerstring
@developerstring 7 ай бұрын
Hey, I need your help to deploy my MERN Project could you please help me out. I have already created the MERN project and I am able to register new users in the database but when i try to login with the same credentials i logged in but the data I want from the backend which has to generate a token and save in cookies that is not able to generate and save in browser cookies. But the fact is the same code I am using in my local machine is working fine but not working with the hosted backend code. Please help to deploy.
@gitunemployed
@gitunemployed 7 ай бұрын
Connect me through LinkedIn
@cutexangel5626
@cutexangel5626 5 ай бұрын
yes it is happening with me also I logged in and logged out successfully because here using post but unable to get information on my page using rendor and netlify
@subrataruj6321
@subrataruj6321 3 ай бұрын
please help sir when i refresh the page except the root directory i got the error of "page not found" like what you told
@gitunemployed
@gitunemployed 3 ай бұрын
Did you added the web.config file? in root
@alphaa45
@alphaa45 7 ай бұрын
hey i need your help ... because of your concept 95% my deployment were done but i have problem... i deploy my backend on render and add the url into the frontend .. which works osm actuall i use strape whne i click on my checkout then it will redirect me to the strape payment page .. after the success full payment i have writen in my code thet it should redirect me to /success page on my frontend ... but i got the error ... Looks like you've followed a broken link or entered a URL that doesn't exist on this site... ca n u please help me how to use and what is the exact code of the web.config .... because in discription u provide two link ... and im deploying my frontend project on netlify please help me ...plzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
@gitunemployed
@gitunemployed 6 ай бұрын
did you changed your URL from strape? means localhost to (something).netlify.app or if you have deployed in render, that perticular link.
@ridhamanand8519
@ridhamanand8519 5 ай бұрын
on refreshing netlify shows page not found, i have added web config file
@gitunemployed
@gitunemployed 5 ай бұрын
Don't forget to push the code after adding the file. If still the issue not solved, then connect me through LinkedIn.
@subrataruj6321
@subrataruj6321 3 ай бұрын
Same problem occur......did you solve it?
@Siva-tx6oc
@Siva-tx6oc 5 ай бұрын
my cookies seesion is not working bro
@gitunemployed
@gitunemployed 5 ай бұрын
Connect me through LinkedIn
@mithunp7839
@mithunp7839 4 ай бұрын
Try adding {samSite:"None", secure:true} in cookie. It worked for me
Everything You NEED to Know About WEB APP Architecture
10:27
ForrestKnight
Рет қаралды 465 М.
A pack of chips with a surprise 🤣😍❤️ #demariki
00:14
Demariki
Рет қаралды 8 МЛН
Ну Лилит))) прода в онк: завидные котики
00:51
ХОТЯ БЫ КИНОДА 2 - официальный фильм
1:35:34
ХОТЯ БЫ В КИНО
Рет қаралды 2,8 МЛН
КАРМАНЧИК 2 СЕЗОН 6 СЕРИЯ
21:57
Inter Production
Рет қаралды 505 М.
My Crazy Day Inside The Shoot of Mahaul Kya Hai | Unfiltered by Samdish
1:01:00
UNFILTERED by Samdish
Рет қаралды 1,3 МЛН
Deploy Vite React App to GitHub Pages (2024)
3:07
Vladyslav Dihtiarenko
Рет қаралды 3,3 М.
Host MERN Stack for FREE - Render + Domain Name Setup
21:10
microsoft's new AI feature is an absolute dumpster fire
9:34
Low Level Learning
Рет қаралды 70 М.
How to Deploy Next.js 13 with MongoDB to Netlify For Free
17:02
A pack of chips with a surprise 🤣😍❤️ #demariki
00:14
Demariki
Рет қаралды 8 МЛН