How to deploy a mern stack project
from what i have seen, we use atlas and then host the backend server on its own so the api will work, and then create the frontend and host it on its own
- but why i have seen some developers putting the frontend and the backend in one folder ??? will it be hosted at once
3 Replies
that is mostly a developer choice, working with everything on a project, or separate the backend project from the frontend and deploy it separately.
If you have both frontend and backend in one folder, Yes it will be hosted at once. You will have to set up some npm scripts to run both at once.
wow can you tell me some services to host both at once ??
I used heroku on the past, i think you can use most of the SaaS platforms like render, cyclic.