I am new to web development and I have a Developed MERN web application which I want to deploy on my hostinger (web hosting). I cannot find any tutorial which teaches deploying on web hosting. there are tutorials which teach to host on VPS.
The most basic structure would be to have a root folder that contains frontend and backend folders. Since you're talking about the MERN stack, you would have a package.json inside of your NodeJS backend environment and a package.json for your React side of things. Backend server and the frontend client are two totally separate things, so yes, they both have their own node_modules folders. On ...
I am building a web application using the MERN stack (MongoDB, Express Server, ReactJS front end and NodeJS back end) and was wondering some good ways to store images from the back end. In the pas...
I have a MERN app whose backend is hosted on Heroku and frontend on netlify. I am not able to see the cookies in the browser after deploying the app but it works fine on localhost. I think it is du...
But because you said MERN stack, so I assume your first application is tightly coupled to your backend. If that's the case, you can either: Decouple the backend service as a public REST API, access the API for both frontend application. Add a new route to the existing frontend app, let's say /admin for your new application.
Your question: How to deploy Mern Stack to a hosting service? There are many options to deploy any nodejs based app but shared hosting is not an option. Use a service like vercel, heroku etc Use Managed Cloud services like Azure, AWS, Google Cloud platform etc. Acquire and setup a VPS Each has it's own tutorials and details.
I am trying to deploy my MERN stack on vercel but I can't get much documentation on what the vercel.config file should contain. This is how my Vite (npm create vite@latest) MERN project is structur...
If it doesn't have to be so real-time (i.e. receiving notifications 1 minute after somebody liked the post is okay), you could also try (long)polling. However, since post-like table may contain a huge amount of data, constantly querying it is expected to result in bad performance on the server. Also, adding an extra column to mark if the user has been notified about a specific like is trivial ...
0 I am thinking of adding python scripts for some data analysis but I am using a MERN stack for my application. An example of what I am thinking- My python script will do some data analysis when an endpoint is being called. ../api/dopythonhere and return a JSON object What would be the best/efficient way to implement python with a MERN stack?