mohamedsamara / mern-ecommerce

:balloon: Fullstack MERN Ecommerce Application
https://mern-store-gold.vercel.app
MIT License
1.63k stars 770 forks source link

README Documentation to deploy on Vercel #214

Closed FedeBatt closed 2 weeks ago

FedeBatt commented 10 months ago

Hello, I'm looking for guidance on how to deploy the project on Vercel. I have a project that consists of both a client-side (frontend) and a server-side (backend). I'm wondering if it's advisable to deploy them separately, with the client and server in different folders, or if there's a preferred way to deploy both the client and server together in a unified deployment. Any recommendations or best practices for deploying such projects on Vercel would be greatly appreciated. Thank you!

abhishek09827 commented 6 months ago

Whether to deploy your client-side and server-side project separately or together on Vercel depends on your priorities. For security and independent scaling, separate deployments are ideal. For simplicity and automatic frontend-backend connection, a unified deployment shines. Consider project size, security needs, and preferred management style when making your choice!

mohamedsamara commented 2 weeks ago

For simplicity I kept both frontend and backend in the same repo with unified deployment. It depends on your project needs like @abhishek09827 mentioned. Some instructions on how to deploy this project on Vercel Guide