How To Deploy MERN ECommerce On Ubuntu Using Hostinger VPS

Поделиться
HTML-код
  • Опубликовано: 8 ноя 2022
  • 👉 Get up to 91% discount: hostinger.com/codingwithbasir
    👉 Q/A : codingwithbasir.com
    ---
    Build An e-commerce website Like Amazon
    👉 Watch Course: • Build MERN-Stack EComm...
    ---
    Follow me on:
    👉 Website: codingwithbasir.com
    👉 Twitter: / basrijd
    👉 Linkedin: / basir-j
    👉 Github: github.com/basir
  • НаукаНаука

Комментарии • 104

  • @manjitkumarnayak3456
    @manjitkumarnayak3456 Год назад +3

    Thank you for this video. I was searching for deployment on hostinger.

  • @reactstack257
    @reactstack257 Год назад +1

    Thank you so much for this amazing tutorial, hope to see in next one how to push the updates.
    Kind regards

  • @nasrinmohammadzadeh838
    @nasrinmohammadzadeh838 Год назад +1

    Thank you basir so useful

  • @lalehdehnavi5760
    @lalehdehnavi5760 Год назад +1

    Brilliant, Thanks.

  • @torrentbits
    @torrentbits Год назад +1

    incredible video. The best.

    • @CodingwithBasir
      @CodingwithBasir  Год назад

      Wow, thanks!
      Please ask any coding questions here:
      codingwithbasir.com/questions/ask/

  • @thedrew6905
    @thedrew6905 10 месяцев назад +4

    nice tutorial! its hard to find tutorials about the deployment phase of a nodejs application. Can you upload the data without using git? what do you think about using cyberpanel?

  • @arnulfovillareal7278
    @arnulfovillareal7278 6 месяцев назад +1

    Hi i just want to ask in the 7:17, when i look at my name servers it display A, CAA, and CNAME not A and AAAA like the one in this video, do i need to delete all my default nameserver and do the same one in your video

    • @CodingwithBasir
      @CodingwithBasir  5 месяцев назад

      try to add mine and if it doesn't work, delete CAA and make it exactly like mine.

  • @sarayousefi5929
    @sarayousefi5929 Год назад +1

    Thanks for sharing this

  • @zahrabahmanpour2348
    @zahrabahmanpour2348 Год назад +2

    I was looking for a a way to deploy this project on Ubuntu. Thanks for sharing this and the discount link!

    • @MilanDrazic
      @MilanDrazic Год назад

      Ubuntu Linux server?

    • @CodingwithBasir
      @CodingwithBasir  Год назад

      yes, it is ubuntu linux server 20.04

    • @CodingwithBasir
      @CodingwithBasir  Год назад

      hello there,
      thanks for your interest.
      you are welcome.

    • @buvaneshvaran6373
      @buvaneshvaran6373 Год назад

      @@MilanDrazic Hi thank u so much. it's worked well. but im getting error like heap limit Allocation failed - JavaScript heap out of memory. can u help me on this

    • @MilanDrazic
      @MilanDrazic Год назад

      @@buvaneshvaran6373 when deploy on Hostinger? try to build first localy and then deploy build folder. the hostinger does not have enough memory to build large app I think

  • @maclareentourandtravels
    @maclareentourandtravels Год назад +1

    Thank you so much for this video. I am following your video for deploying my MERN website on centOS 7 vps on hostinger by changing the commands but for this command "sudo a2enmod proxy proxy_http rewrite headers expires" it is displaying an error "sudo: a2enmod: command not found" . I tried all the alternatives but nothing works. Can you please let me know what command i have to add to make it work on centOS 7 Cyber panel. Please!

    • @CodingwithBasir
      @CodingwithBasir  Год назад

      did you try this:
      stackoverflow.com/questions/50022485/a2enmod-command-not-found-in-apache-server-using-cpanel-in-linux-vps
      Please ask this question here:
      codingwithbasir.com/questions/ask/
      I answer it on daily basis.

  • @MrVerkysse
    @MrVerkysse Год назад +1

    Nice
    job

    • @CodingwithBasir
      @CodingwithBasir  11 месяцев назад

      Thank you! Cheers!
      Please watch my courses on Thinkific: basir.thinkific.com
      Use coupon SAVE90 for 90% off.

  • @yohannesgezahegn999
    @yohannesgezahegn999 Год назад +2

    basir please help me i have got an issue building mern amazona . i have asked on your question website still haven't got an answer ...i have an issue on vedio 12 i am getting 404 error i coundn't fecth the image what is the error i try to reverse the error by compering my code with your in github but still can't find the error please help me.

    • @CodingwithBasir
      @CodingwithBasir  Год назад

      Please ask this question here:
      codingwithbasir.com/questions/ask/
      I answer it on daily basis.

  • @tanvirashraf728
    @tanvirashraf728 Год назад +1

    Assalamualaikum Mr. Basir. I have two of your courses on udemy, both the mern and next js amazona. Do you have any plan to rebuild amazona with vue or angular, plz let me know. Thnx

  • @manuelamoss8176
    @manuelamoss8176 Год назад +3

    hi, Thank you for this tutorial. I have my site running, but after some months I deployed some changes, but I can't see it online. I can see the changes in the project /rest folder. What I should do to see the changes?

    • @CodingwithBasir
      @CodingwithBasir  11 месяцев назад

      hello there,
      you need to git push to apply changes.
      also make sure forever and pm2 has the server proccess running.

    • @manuelamoss8176
      @manuelamoss8176 11 месяцев назад

      @@CodingwithBasir tks. I figured out how to work and now my site is running very well.

    • @ajprogrammer128
      @ajprogrammer128 2 месяца назад

      Can you please help me host my mern stack Web on vps hostinger I am trying to host from last 15 days but I didn't get any fruitful result

    • @manuelamoss8176
      @manuelamoss8176 2 месяца назад

      @@ajprogrammer128 sure, can you give more details, what error are you having?

  • @NathnaelAbera
    @NathnaelAbera 4 месяца назад +1

    i would like to thank for the video but i have build my react app using vite and i was able to push both backend and front end to my server but am geting the backend data as json on the browser when i hit my domain

    • @CodingwithBasir
      @CodingwithBasir  16 дней назад

      what exact error do you get? submit an issue on the github repo with all details. repo link is in the video description.

  • @JavascriptForEverything
    @JavascriptForEverything Месяц назад

    this is very good explanation

    • @CodingwithBasir
      @CodingwithBasir  24 дня назад

      thanks.
      check my new course on youtube.
      www.youtube.com/@CodingwithBasir/playlists

  • @meetbhadeshia2504
    @meetbhadeshia2504 Год назад +1

    I followed your tutorial of deploying. I followed all your steps. I got the processing running in forever, but when I open the website, error of 502 is coming. Errors are
    Proxy Error
    The proxy server received an invalid response from an upstream server.
    The proxy server could not handle the request
    Reason: Error reading from remote server

    • @CodingwithBasir
      @CodingwithBasir  Год назад

      Please send screenshot of error to take a look. include terminal logs and chrome dev tools console logs.
      Please ask this question here:
      codingwithbasir.com/questions/ask/
      I answer it on daily basis.

  • @etiennecooremans5156
    @etiennecooremans5156 7 месяцев назад +2

    Is this scalable for multiple websites and multiple databases?

    • @CodingwithBasir
      @CodingwithBasir  13 дней назад

      for sure it is.
      watch my new course on www.youtube.com/@CodingwithBasir/playlists

  • @ObjectiveTruth-zm3hi
    @ObjectiveTruth-zm3hi 9 дней назад

    i dont understand what port does the react client runs on, you've used forever to keep the server running on port 8000, but what about the react client, how does it run ? ?

    • @CodingwithBasir
      @CodingwithBasir  9 дней назад

      React Client Deployment
      The React client code (HTML, CSS, and JavaScript) is typically built for production and placed in a directory on the server that's accessible by the web browser. This directory is often the root (/) of your web server's document root.
      When a user accesses your application's URL in the browser (e.g., your-server-address/), the browser fetches the client-side code from the server's document root.
      The client-side code then interacts with the Node.js server (backend) on the specified port (8000 in your case) to fetch data and perform actions.
      Key Points
      You don't need to configure a port for the React client itself.
      The Node.js server (backend) port (usually 8000) is only relevant for communication between the client and server.
      Ensure your web server (e.g., Apache, Nginx) is configured to serve the React client code from the appropriate directory when a user requests your application's URL.
      Additional Considerations
      For production deployments, consider using a process manager like PM2 for more advanced features like load balancing and clustering.
      You might have a build step in your React development process that creates an optimized production build of your client-side code.
      I hope this explanation clarifies the distinction between React client and server ports in deployments on Ubuntu servers. If you have further questions, feel free to ask!
      please ask any questions on this course on the github repo. link in the description.

  • @NanoShi-mr8nt
    @NanoShi-mr8nt Год назад +1

    hi basir and thanks for make this video but i have a proble in the last step cuz when i use the forever list it show me this message (info: No forever processes running)

    • @CodingwithBasir
      @CodingwithBasir  Год назад

      It means that the git push workflow didn't work as you want. Make sure the package.json add in the pre-save of git, you set the commands as I did in the code:
      github.com/basir/mern-amazona/blob/master/package.json

  • @parshuramnikam8266
    @parshuramnikam8266 10 месяцев назад +1

    Very NIce Video

    • @CodingwithBasir
      @CodingwithBasir  13 дней назад

      thanks,
      check my new courses on www.youtube.com/@CodingwithBasir/playlists

  • @dulich4phuong_online
    @dulich4phuong_online 3 месяца назад +1

    How can i store image? Should i store in datanse or Hosting too?

  • @gouravkushwaha3001
    @gouravkushwaha3001 11 месяцев назад

    Can I host my MERN website on hostinger's premium web hosting plan?

    • @CodingwithBasir
      @CodingwithBasir  11 месяцев назад

      For sure you can. Use this video please

  • @biggiecharinga5360
    @biggiecharinga5360 Год назад

    hello sir i have followed your steps this is the error i am getting {"msg":"ENOENT: no such file or directory, stat '/root/apps/emmasdale/dest/server/client/build/index.html'"} please help

    • @CodingwithBasir
      @CodingwithBasir  Год назад

      Please ask this question here:
      codingwithbasir.com/questions/ask/
      I answer it on daily basis.

  • @user-rj9vf3nr5i
    @user-rj9vf3nr5i 20 дней назад

    how to add .env file in hostinger for react.js and node

    • @CodingwithBasir
      @CodingwithBasir  19 дней назад

      ssh to your hostinger sever.
      go to the app directory and run
      $ nano .env
      then add env variables in this file.
      save and exit.

  • @jetlinkarkha9659
    @jetlinkarkha9659 11 месяцев назад

    I made a website using html,css, javascript for frontend and express nodejs for my backend and my storage using mongodb and store in AWS and run in local host,but I want to deploy my website so can you please help me how to upload and also how to add domain for my website

    • @CodingwithBasir
      @CodingwithBasir  11 месяцев назад +1

      hello there,
      thanks for your interest.
      where do you want to deploy.
      I have 1-to-1 class for my courses students. you can take it from here:
      codingwithbasir.com/tutoring

    • @jetlinkarkha9659
      @jetlinkarkha9659 11 месяцев назад

      @@CodingwithBasir either GoDaddy or hostinger please make one video about this topic

  • @dhiddentreasure
    @dhiddentreasure Год назад

    Can i deploy mine also with this steps using windows??

    • @CodingwithBasir
      @CodingwithBasir  Год назад

      for sure you can.
      Please ask any coding questions here:
      codingwithbasir.com/questions/ask/

  • @theOogaMan
    @theOogaMan 10 месяцев назад +3

    Lets say I dont have a server.js. What do I do? I have a plain website that doesnt have/need any backend as of right now

    • @mastaan1646
      @mastaan1646 3 месяца назад +2

      Then u don't even need vps, you just upload the build version. This reply is probably very late though.

    • @ajprogrammer128
      @ajprogrammer128 2 месяца назад

      ​@@mastaan1646bro can you please help me to deploy my mern project on vps I'm trying to host the last 14 days ago but I'm still struggling

    • @ajprogrammer128
      @ajprogrammer128 2 месяца назад

      ​@@mastaan1646 please bro

    • @CodingwithBasir
      @CodingwithBasir  13 дней назад

      what exact error do you get? submit an issue on the github repo with all details. repo link is in the video description.

  • @krunalkumbhare9393
    @krunalkumbhare9393 7 месяцев назад +1

    can you make the video on how to host backend api on hostinger on shared hosting

    • @CodingwithBasir
      @CodingwithBasir  13 дней назад

      nodejs can't be host on shared hosting like php.

  • @sharoonhoney1054
    @sharoonhoney1054 Месяц назад

    Great 👍

  • @MilanDrazic
    @MilanDrazic Год назад

    Can you show how to make mongodb rest API endpoint for cpanel custom server?
    Like this app in next JS

    • @CodingwithBasir
      @CodingwithBasir  Год назад

      hello there,
      thanks for your interest.
      could you please elaborate your questions?

  • @abdelrhmanharidy7412
    @abdelrhmanharidy7412 Год назад

    Thanks for Video but I have 2 error
    error: Cannot start forever
    error: script /root/apps/igate/dest/igate-tv/server/src/index.js does not exist.

    • @CodingwithBasir
      @CodingwithBasir  11 месяцев назад

      hello there,
      thanks for your interest.
      for the first push you get this error. try push another commit and it works.

  • @sayedabdo6266
    @sayedabdo6266 11 месяцев назад

    I am on plan web hosting and I want to delploy me MERN website, I deploy react code and it's run but code node js, I don't know how and where to deploy it.
    can anone help me?

    • @CodingwithBasir
      @CodingwithBasir  11 месяцев назад

      hello there,
      for nodejs you need to buy a vps from hostinger, aws, etc.
      then follow this video here to find it out.

    • @CodingwithBasir
      @CodingwithBasir  11 месяцев назад

      hello there,
      for nodejs you need to buy a vps from hostinger, aws, etc.
      then follow this video here to find it out.

  • @MunnawarHussain-rz3nw
    @MunnawarHussain-rz3nw Год назад +1

    In the last on enter forever list I got STOPPED and in video it's 0:0:0:18.689

    • @CodingwithBasir
      @CodingwithBasir  18 дней назад

      what exact error do you get? submit an issue on the github repo with all details. repo link is in the video description.

  • @ahbarajaib2357
    @ahbarajaib2357 Год назад

    Hello Basir
    I followed the entire tutorial but I'm getting an error in console Failed to load resource: the server responded with a status of 503 (Service Unavailable)
    and on browser tab 503 Service Unavailable
    Thank you. Please help

    • @Mimi-rv5rb
      @Mimi-rv5rb Год назад

      Hey! did you fix this?

    • @pawankr54
      @pawankr54 9 месяцев назад

      @@Mimi-rv5rb hi did you fix it?

    • @CodingwithBasir
      @CodingwithBasir  18 дней назад

      what exact error do you get? submit an issue on the github repo with all details. repo link is in the video description.

  • @jetlinkarkha9659
    @jetlinkarkha9659 11 месяцев назад

    how to host nodejs website with mongodb database in godaddy

    • @CodingwithBasir
      @CodingwithBasir  11 месяцев назад

      hello there,
      it is easy. hostiger and godady are very similar. in which part you can't follow this video on godady?

    • @CodingwithBasir
      @CodingwithBasir  11 месяцев назад

      hello there,
      it is easy. hostiger and godady are very similar. in which part you can't follow this video on godady?

  • @jobianstechie
    @jobianstechie Год назад

    Not working again, if giving 503 error

    • @pawankr54
      @pawankr54 9 месяцев назад

      did you fix it ?
      i am getting the same issue

    • @jobianstechie
      @jobianstechie 9 месяцев назад

      @@pawankr54 Yes, I used nginx instead of apache

    • @CodingwithBasir
      @CodingwithBasir  13 дней назад

      what exact error do you get? submit an issue on the github repo with all details. repo link is in the video description.

  • @codewithrosharana
    @codewithrosharana Год назад

    i cant add it with www

    • @CodingwithBasir
      @CodingwithBasir  18 дней назад

      what exact error do you get? submit an issue on the github repo with all details. repo link is in the video description.

  • @nasrinmohammadzadeh838
    @nasrinmohammadzadeh838 Год назад

    Thank you basir so useful

  • @NathnaelAbera
    @NathnaelAbera 4 месяца назад

    i would like to thank for the video but i have build my react app using vite and i was able to push both backend and front end to my server but am geting the backend data as json on the browser when i hit my domain

    • @thisaragunasekara924
      @thisaragunasekara924 3 месяца назад

      Did you fix it

    • @CodingwithBasir
      @CodingwithBasir  16 дней назад

      what exact error do you get? submit an issue on the github repo with all details. repo link is in the video description.