Guidance Required: Deployment of MERN Stack Application
Opened this issue · 5 comments
Hello!
I have been following your excellent series on building a MERN stack application and it has been greatly informative. I've successfully built the application on my local system, and now, I would like to deploy it for wider access.
I am unsure about the deployment process, especially in terms of the right steps to take and the best platforms to use for hosting both the Node.js backend and the React frontend of my MERN stack application.
Could you provide guidance on the following:
- Steps to prepare the app for deployment (like setting environment variables).
- Best services/platforms to deploy the frontend and backend (like Heroku, Netlify, AWS, etc.)
- How to manage continuous integration/continuous deployment from my GitHub repository to the deployment platform.
Your help would be greatly appreciated. Thank you in advance!
Best,
capt-amlan-padhi
Same doubt
Hi ed-roh,
I can help you with the deployment of your mern stack application if you could assign this issue to me. I will be really glad to help.
For frontend you can deploy it on netlify as it is free and very easy to set to production.
For backend i will suggest to you to use Vercel because heroku and AWS are expensive.
I have also noticed that you have used multer for file upload, unfortunately multer wont work in deployment as you have to use cloud providers for file storage.
Hi ed-roh, I can help you with the deployment of your mern stack application if you could assign this issue to me. I will be really glad to help. For frontend you can deploy it on netlify as it is free and very easy to set to production. For backend i will suggest to you to use Vercel because heroku and AWS are expensive. I have also noticed that you have used multer for file upload, unfortunately multer wont work in deployment as you have to use cloud providers for file storage.
can u suggest how to change multer and use cloud providers as iam trying to deploy this project on netlify and render but not able to do it same as i guess iam not able to upload pictures . please guide me
Hi ed-roh, I can help you with the deployment of your mern stack application if you could assign this issue to me. I will be really glad to help. For frontend you can deploy it on netlify as it is free and very easy to set to production. For backend i will suggest to you to use Vercel because heroku and AWS are expensive. I have also noticed that you have used multer for file upload, unfortunately multer wont work in deployment as you have to use cloud providers for file storage.
can u suggest how to change multer and use cloud providers as iam trying to deploy this project on netlify and render but not able to do it same as i guess iam not able to upload pictures . please guide me
Hey, you can try using cloudinary, i had similar issue so I used cloudinary to store my images, so basically during the api call you convert your image into base 64 and send it to backend wherein it uploads the image on cloudinary and in response gives you a link to that image which then you can pass-on to the frontend.
@capt-amlan-padhi do you find the solution/s ? If yes, share to us