How to Deploy a MERN STACK App on Render | Step by Step Guide

Опубликовано: 21 Март 2024
на канале: Future Technical
285
12

In this video, we will deploy a MERN project to Render, free of charge. The process involves managing project files and resolving any errors before deployment. We will then push the project to GitHub using Git commands. Lastly, we will connect the GitHub project to Render and run the application.

0:00 intro
0:22 making chrome ready
1:20 managing file and making errors free
3:48 uploading files to github
5:25 deploying github project on render
7:50 running our mern application

Missing Code here:
const path = require('path');
/* express.static is used to serve the static files in the client/build directory. The app.get('*') route handler sends the index.html file for any requests that don't match any other routes. This is useful for serving a single-page application (SPA) built with a framework like React */
app.use(express.static(path.join(__dirname,'./client/build'))) app.get('*',function(req,res){ res.sendFile(path.join(__dirname,'./client/build/index.html')) })

If you encounter any errors, feel free to ask me directly via comments or social media. Thanks!
🔔 Don't forget to subscribe to our channel for more programming solutions🔔

To know more about me follow me on 👇
Follow me on Instagram:
  / codewithfuture  

Follow me on Facebook:
  / bhabishya.ghimireabd.7  

Follow our FB_Group:
  / 499296971226742  

For Business Information :
Email: [email protected]


Смотрите видео How to Deploy a MERN STACK App on Render | Step by Step Guide онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Future Technical 21 Март 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 285 раз и оно понравилось 12 людям.