Build and deploy a React js website and Node js , Express RESTful API on cpanel

Поделиться
HTML-код
  • Опубликовано: 2 фев 2025

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

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

    Thank you, brother. You saved my whole day! Thanks to your video, I was able to successfully upload and run my full-stack application on cPanel!

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

    will be any change in steps or config if iam usin es6 modules (import & export) not require

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

    So Ive been following this guide and when I run my front end Im getting a err connection refused on the API calls, any ideas on how to trouble shoot this?

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

    Thank you, this has been helpful.

  • @ogwoekechi7838
    @ogwoekechi7838 2 года назад

    Wow this is amazing thanks for this video, it just solved my long time problem

    • @codesermon
      @codesermon  2 года назад

      You're welcome. Just do me a favour and subscribe to channel and share it with your friends as well.

  • @bouazzaismail9627
    @bouazzaismail9627 2 года назад +1

    Hey man thank you for this tutorial, learnt so many new things, just a question tho, I have set an express server with the get(/express_backend), but I'm not able to access it when running my application, it just keeps loading, can you help please !

    • @codesermon
      @codesermon  2 года назад

      Do you return any response through the route?

    • @bouazzaismail9627
      @bouazzaismail9627 2 года назад

      @@codesermon do you have a discord or something where I can share some screenshots with you ? I'll really appreciat it !

    • @codesermon
      @codesermon  2 года назад

      @@bouazzaismail9627 for now use TechFortified @ Gmail.com

    • @bouazzaismail9627
      @bouazzaismail9627 2 года назад

      @@codesermon but basically this is what I'm having
      app.get('/express_backend', async (req, res) => { //Line 9
      let page = await configureTheBrowser1();
      let results = await checkDetails1(page);
      res.send(results);
      });

  • @allanbr.8308
    @allanbr.8308 2 года назад +1

    Thank you so much

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

    What hosting server do you use for this or recommend?

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

      Namecheap shared hosting plan for business

  • @arturocamargovalenzuela7088
    @arturocamargovalenzuela7088 2 года назад

    I don't speak english, but excellent job. Me sirvio muchisimo gracias.

    • @codesermon
      @codesermon  2 года назад

      I appreciate, thank you.

  • @surajbhattacharya9448
    @surajbhattacharya9448 2 года назад

    I am unable to get the API work after following all the steps, it always throws Web application could not be started by the Phusion Passenger application server.

    • @codesermon
      @codesermon  2 года назад

      Maybe you try again or contact your hosting provider for support

  • @dolapoajayi2156
    @dolapoajayi2156 2 года назад

    hi nice tutorial..on the node js application environment on cpanel..do we also need to add the environment variables one by one or leave it as a file.because i can see an option to add environment variables on cpanel.

    • @codesermon
      @codesermon  2 года назад

      Follow the video till the end

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

    It is vps hosting or steller plan ??

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

      Stellar plan

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

      @@codesermon please help me , me also have stellar plan my frontend portion is proper working, I have issues with backend portion

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

      @@codesermon it's urgent, please help me !!!

  • @neerajkanojiya8098
    @neerajkanojiya8098 2 года назад +2

    By seeing your video I got to learn many things and it helped me in my current project. The only thing is, I am stuck in one place. I am using Mongo as db and in local I am anble to fetch the records but after hosting in cpanel I am facing error: "This request takes too long to process, it is timed out by the server. If it should not be timed out, please contact administrator of this web site to increase 'Connection Timeout'."
    Can you please help me on the same?
    Thansk!!!

    • @codesermon
      @codesermon  2 года назад

      On a remote server, did you change your local Mongodb URL to remote Mongodb URL? If no, Google Mongodb and create an account on their site and spin a free cluster for your project.

    • @neerajkanojiya8098
      @neerajkanojiya8098 2 года назад

      @@codesermon Yes I already have change the url before deployment.

    • @codesermon
      @codesermon  2 года назад

      Here's what you should do. Replace your local Mongodb URL with the remote Mongodb URL in development and check if it's connected on localhost before deploying into production. Do that and let me know again else we will schedule a meeting

    • @neerajkanojiya8098
      @neerajkanojiya8098 2 года назад

      @@codesermon It is not working. Please let me know how we can connect.

    • @neerajkanojiya8098
      @neerajkanojiya8098 2 года назад

      @@codesermon while running npm from cpanel got some error: " info run core-js@3.25.0 postinstall node_modules/core-js node -e "try{require('./postinstall')}catch(e){}"
      6955 info run core-js-pure@3.25.0 postinstall node_modules/core-js-pure node -e "try{require('./postinstall')}catch(e){}""

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

    Good day, on my cpanel
    I can't find setup node js
    How do I fix that

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

      Upgrade your hosting account or contact your provider

  • @deborahegonu6978
    @deborahegonu6978 2 года назад

    Hello, wonderful tutorial. Please I keep getting 503 error once I change it from app.js to index.js, how can I solve this ? I am using MySQL for database, React js for the front, Express for the middleware and Node js for the backend

    • @codesermon
      @codesermon  2 года назад +1

      Is index.js your main file? If it isn't then there's no need to change and whenever you change, ensure you refresh the Nodejs app before restarting the app.

    • @deborahegonu6978
      @deborahegonu6978 2 года назад

      @@codesermon Hi, thanks for your reply. Yes, it is. I did that but I am getting a 500 error now, do you mind looking at my code?

    • @codesermon
      @codesermon  2 года назад

      @@deborahegonu6978 use my email and create a Google meeting and send me invite..

    • @talhashafeeq9167
      @talhashafeeq9167 2 года назад +1

      @@codesermon I am getting same error of 503, Please can you help me

  • @joaogil4484
    @joaogil4484 2 года назад +1

    Wonderful tutorial! It helped me a lot, but I'm also getting that 503 error :\ Can you help me?

    • @codesermon
      @codesermon  2 года назад

      Can you try hosting it on a subdomain?

    • @joaogil4484
      @joaogil4484 2 года назад +1

      @@codesermon yes, I only tried that

    • @codesermon
      @codesermon  2 года назад

      @@joaogil4484 I will suggest is to delete everything and try the process again or create new subdomain and try again. Something must be wrong somewhere. Ensure your environment variables are set correctly when on localhost and in production

    • @joaogil4484
      @joaogil4484 2 года назад

      I'm getting an error when try to install the node modules:
      npm WARN lifecycle The node binary used for scripts is /home/joaoetwb/nodevenv/blog.joaogil.xyz/14/bin/node but npm is using /opt/alt/alt-nodejs14/root/usr/bin/node itself.

    • @codesermon
      @codesermon  2 года назад

      @@joaogil4484 ensure that your node environment in development matches the one in production. If it doesn't match, check your package.json and set the nod versionto your production version and try again

  • @ayoleyigreat874
    @ayoleyigreat874 2 года назад +1

    Pls, can share your repo link for this project

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

    please review the sound

  • @MasterwaveTech
    @MasterwaveTech 2 года назад

    Great tutorial, please can you share the project link to download the file

    • @codesermon
      @codesermon  2 года назад

      Following it will be better. I will plan code release in subsequent videos

  • @solomonfighter5936
    @solomonfighter5936 2 года назад +1

    hello i try my error is something i dont understant
    can you help me
    do you have a email>?

    • @codesermon
      @codesermon  2 года назад

      techfortified@gmail.com is my email.

    • @codesermon
      @codesermon  2 года назад

      which error are you receiving?