How to Deploy a Node.js App to Render.com for Free (Heroku Alternative)

Поділитися
Вставка
  • Опубліковано 17 січ 2025

КОМЕНТАРІ • 246

  • @Codebrah
    @Codebrah  Рік тому +13

    Having a hard time deploying your app?
    I'll do it for you, pain free: codingwithcodebrah.com/deploy-4-me

    • @kurdm1482
      @kurdm1482 9 місяців тому

      thanks, i didn't specify the process.env.port, so it didn't go live, but with that added it works flawlessly. thanks bra!

  • @SvitlanaYudina
    @SvitlanaYudina Рік тому +26

    Thank you very much!!!🥰
    You saved me and my backend!🥳
    Special thanks for the detailed description of what needs to be indicated in each field. I would not have thought of writing "npm install" in the BUILD COMMAND field. And thanks for the typescript! That you said that after the installation you need to write a TSC!
    You are a true professional. 😎Good luck to you!!!❤

  • @Akiramenai04
    @Akiramenai04 Рік тому +5

    Thank You so much CodeBrah. Your channel name sounds like a hero who saves his county from some mischievous evil and you exactly did the same for me. Keep it Up !

  • @johntony366
    @johntony366 2 роки тому +23

    2:13 You don't need to delete the node_modules folder. Just create a .gitignore file and add "node_modules" to it. This will tell git to ignore it.

    • @omgavy
      @omgavy Рік тому +1

      LMAO
      He is doing his way leave poor the poor guy.

    • @starjohnson3040
      @starjohnson3040 Рік тому +3

      He explained you could create .gitignore file

  • @al-ft1ng
    @al-ft1ng Рік тому +2

    thank you a bunch man. Been tryna upload my damn app for a day, tried vercel netlify n so on none worked except for this

  • @trollpro0108
    @trollpro0108 Рік тому +2

    I love youuuuuu!!!!!!! After days of try and fail with other services, your video was my greenlight!!! Thanks for making the content

  • @tommetcalf3082
    @tommetcalf3082 Рік тому +8

    Thanks for this. I was struggling to deploy a full stack app on Render. It was failing on the build, as I was trying npm build, but followed what you said about using npm install and it worked. Thanks for saving any further frustration!

  • @КомилджонАрыкович
    @КомилджонАрыкович 2 роки тому +2

    You are awesome man, I was mad with other UA-camrs tutorials. Keep going bro🔥🔥🔥

  • @darkagent9457
    @darkagent9457 2 роки тому +4

    Thank you much bro! You just helped me move my site to render, I was so depressed about heroku, god bless you!

  • @stellanwae5050
    @stellanwae5050 11 місяців тому +2

    Thank you sooo much for having this video. Simply explained. Thank you!

  • @respect-dev-w7n
    @respect-dev-w7n Рік тому +4

    it was my first time deploying .You made it easy thanks😁

  • @brunobrasil3419
    @brunobrasil3419 7 місяців тому

    Just wanted to thank you and tell you that you deserve a bajillion subscribers. You have made my day! ❤

  • @sujoyghosh7152
    @sujoyghosh7152 Рік тому

    thanks a lot for the video brother. after wasting 2hrs trying to install express on netlify, this video done it in 10mins.

  • @Abdullah-ayab
    @Abdullah-ayab 10 місяців тому +1

    but they want credit info

  • @mrnabby4178
    @mrnabby4178 Рік тому +1

    i just wasted 4 hours to host my backend application in netlify. That thing is too complicated. Render looks easy. I shall do it tommorow. Thanks in advance.

    • @nithya4860
      @nithya4860 Рік тому +1

      Me struggling for 5 hours

    • @mrnabby4178
      @mrnabby4178 11 місяців тому

      @@nithya4860 with render?

    • @shlev13
      @shlev13 3 місяці тому

      bro fr i had exactly the same issue

    • @mrnabby4178
      @mrnabby4178 3 місяці тому

      @@shlev13 yeah

  • @kaiser_stash
    @kaiser_stash 3 місяці тому

    daaaaamn, the best video maaan. U saved my BACK and my backend.

  • @weggievillarante1029
    @weggievillarante1029 Рік тому +2

    Thank you so much. It helps me a lot. This super easy! Thank for a detailed instruction.

  • @DarshanJainStud
    @DarshanJainStud Рік тому +2

    Very short and crisp video. It helped me a lot. Thank you for creating such meaningful and easy content. Bhagwan Mahavir bless you.

  • @kush-cp8kc
    @kush-cp8kc Рік тому

    Thank you very much bro , I was searching for a alternate for a really long time , u saved my backend bro :)

  • @suborno9249
    @suborno9249 Рік тому +1

    5:41 How can i add .env files?

  • @vibes.productive
    @vibes.productive Рік тому

    bro you are literally saving lives....thanks for the tutorial

  • @Dagoth90
    @Dagoth90 Рік тому +2

    Thanks man, needed this!

  • @stanvideosedits
    @stanvideosedits Рік тому +1

    thank you dude god bless you you helped me so much

  • @andriikniaziev9242
    @andriikniaziev9242 Рік тому

    Thank you so much! It is the first time i deployed app by myself))

  • @playcode9750
    @playcode9750 Рік тому

    Thanks man. straight to the point.

  • @charan6154
    @charan6154 Рік тому

    Thank's for the video man!! appreciate it

  • @pablofernandez1555
    @pablofernandez1555 Рік тому

    Thx bro. Instruction clear and simple

  • @jacerchetoui709
    @jacerchetoui709 2 роки тому

    Thank you so much man you just saved all my projects !! this is so much better than heroku

  • @mnmmnnm8191
    @mnmmnnm8191 Рік тому

    im so grateful for your help

  • @umeshkumarbedi7216
    @umeshkumarbedi7216 9 місяців тому

    Many Many Thanks. I was searching like that

  • @varvar3316
    @varvar3316 2 роки тому +1

    Thank's man!!! You saved me! I had to quickly run with Heroku. Very on time and great service! God bless you! 🙏🙏🙏

    • @Codebrah
      @Codebrah  2 роки тому +1

      God bless you aswell my friend!

    • @varvar3316
      @varvar3316 2 роки тому +3

      @@Codebrah There is nothing to thank me for. Well, except for the fact that I'm raising 2 children. :)
      I fled my country because of injustice. I am over 50 years old. But in order to survive in a new place, I'm learning js.
      But people like you help us get out. You distribute knowledge to everyone. You are a good person and I am very grateful to you.
      I repeat once again - God bless you and good people like you who help people!

    • @andrewberrio7374
      @andrewberrio7374 2 роки тому

      @@varvar3316 hey CodeBrah I can help you with anything you need I had been studying for one year on mern stack.

    • @adityasonakiya8864
      @adityasonakiya8864 2 роки тому

      @@andrewberrio7374 can we deploy websites with socket use in them in render?

  • @guilliancelle7539
    @guilliancelle7539 7 місяців тому +1

    Small question, if I have a .env how do I do

    • @korauo
      @korauo 6 місяців тому +2

      add environment variables and click add from .env and then paste the contents of ur .env file in it.

  • @kazisadman5142
    @kazisadman5142 11 місяців тому

    You saved a lot time. thank you🙌

  • @justarandomguy6106
    @justarandomguy6106 10 місяців тому +2

    will this work with websockets??

  • @ahmedfarooq7253
    @ahmedfarooq7253 Рік тому

    YOU ARE JUST AMAAZINGGG, YOU DESEVED 100000000000000M subsss, God Bless you bro

  • @saurabhbisht2238
    @saurabhbisht2238 2 роки тому +1

    Hii iam working on different mern project everything is working fine but when i reload the page it just says 404 error not found.......it is working well in local host it is not working after deployment.....

  • @darkielee9395
    @darkielee9395 Рік тому

    Thank you so much. This video is a life saver

  • @jorgeloaiza3406
    @jorgeloaiza3406 Рік тому +1

    Good video. How can I deploy my project with React js and Node js when backend is inside frontend? How can I know my root directory?

  • @nsikansimon1939
    @nsikansimon1939 Рік тому

    Thanks for the explanation man!

  • @alexkroeger4113
    @alexkroeger4113 2 роки тому +1

    I clicked on the web service and my card got declined. I guess I need other options.

  • @amarjeetkumarsingh733
    @amarjeetkumarsingh733 2 роки тому

    Thanks a lot...It helped me to deploy my full stack web app

  • @fake_rabbi
    @fake_rabbi Рік тому

    You just saved me. Thank you so much

  • @GuilleAcosta124
    @GuilleAcosta124 Рік тому

    Thanks! worked like a champ!!

  • @lolwildriftbro
    @lolwildriftbro 2 роки тому

    Thanks Man! It was really helpful!

  • @jleonelpm
    @jleonelpm 2 роки тому +1

    Hey, my friend, you save me, was really useful. Regards

  • @node_python_lover454
    @node_python_lover454 2 роки тому

    very interesting service! Thanks for introducing it to us!

  • @nicolotiraboschi
    @nicolotiraboschi Рік тому +1

    If I want to deploy an eCommerce website and use it, can I stick with the free plan or should I upgrade? In that case, should I consider alternatives to Render, like Heroku?

  • @aniketsinhaju
    @aniketsinhaju 9 місяців тому

    Thanks man you saved my job

  • @muhammedsinan3897
    @muhammedsinan3897 Рік тому

    thanks a ton..man..You literally saved my lifetime project from collapsing..

  • @mrcoder1822
    @mrcoder1822 Рік тому

    thank you so much bro easy and fast

  • @FGA-47
    @FGA-47 2 роки тому

    thanks so much. that was really helpful

  • @mrgioher2303
    @mrgioher2303 3 місяці тому

    Thank you for your help, Brazilian regards.

  • @quangvunguyen2604
    @quangvunguyen2604 2 роки тому +3

    what Cannot find module ‘/opt/render/project/src/app.js

  • @kazisamir123
    @kazisamir123 2 роки тому +1

    can i deploy Backend express restApi on it

  • @MukeshKhannaJ
    @MukeshKhannaJ 5 місяців тому

    excellent tutorial thank you

  • @dev8896
    @dev8896 2 роки тому +1

    Thanx a ton man, saw this and deployed my express app on render.
    Was trying from 2 days to get it on vercel but nothing was working there.

    • @nicenamenicesurname8365
      @nicenamenicesurname8365 Рік тому

      What? Vercel works for node if you don't plan on using websockets, whatever it's done now

  • @robvillalobos3370
    @robvillalobos3370 Рік тому

    Thank you so much! 🙂

  • @jahidhasanjibon3982
    @jahidhasanjibon3982 2 роки тому

    really help me a lot thank you so much.

  • @DevelopmentLaboratory
    @DevelopmentLaboratory 8 місяців тому

    Thanks man, i am from Brazil ❤

  • @anandaj4764
    @anandaj4764 Рік тому

    Thank you really helpful

  • @jhonacosta8450
    @jhonacosta8450 Рік тому

    very useful and compact. ty

  • @anjaliverma7246
    @anjaliverma7246 Рік тому

    I deployed my node.js app on render but while adding query to url , it is not giving the expected output but when I am doing the same in local host, it is working.

  • @chaitanyapawar5483
    @chaitanyapawar5483 11 місяців тому

    Thank you so much!

  • @gj_souls6738
    @gj_souls6738 Рік тому

    I never thought that Clint Eastwood would save me Haha, seriously man thanks a lot I always have problems hosting an application.

    • @Codebrah
      @Codebrah  Рік тому +1

      😂😂😂 no problem man. Glad I could help

  • @bong8385
    @bong8385 Рік тому

    Render automatically installs all the npm packages that you need?

  • @ddd99991
    @ddd99991 Рік тому

    Yo u should keep posting tutorials. I like your thumbnails

  • @CorlStream
    @CorlStream 2 роки тому

    Thanks for the video!
    Greetings from brazil :)

  • @eissafaheem6062
    @eissafaheem6062 Рік тому

    I think there is a limit to api calls, If so then will socket events also exhaust this limit?

  • @wantedshark5165
    @wantedshark5165 Рік тому

    thank you for the explain

  • @pharmacyvell
    @pharmacyvell Рік тому +1

    How do i install libraries on render? Such as 'dotenv' or 'cors'?

    • @Codebrah
      @Codebrah  Рік тому +2

      I'm not 100% sure but I would assume you do it nodeJS with npm. Then in render's build command option you just normally run a 'npm install'

  • @atgaming263
    @atgaming263 Рік тому

    I already deploy and the logs says connected to the server. But when i visit my site it's still 502. Is it need time to website can be access ?

  • @FirasMohamed96
    @FirasMohamed96 Рік тому

    it worked thanks!

  • @pablom2274
    @pablom2274 Рік тому

    What alternative to render would you recommend? I have a fullstack project with express-pug and was easy to make it run but the recover from inactivity is too long... thanks man!

    • @Codebrah
      @Codebrah  Рік тому

      Me personally, I would just use a VPS. 5$ per month + $12/yr for the domain. I have a tutorial on my channel you can checkout. Goodluck!

  • @asprogramming120
    @asprogramming120 Рік тому

    how to install library or imagemagick ... etc system level software on render during deployment

  • @LordPsychocutioner
    @LordPsychocutioner 9 місяців тому

    Can someone just tell me which github you used and what settings to use and which tags or codes to put in? I do not want to have my head chatted off for over 6 minutes when I could just do everything in under 1

  • @asjosvah3441
    @asjosvah3441 2 роки тому

    Thanks a lot. 🔥❤

  • @david_yuzhakov
    @david_yuzhakov 8 місяців тому

    thank you very mush!

  • @hanifbahari6606
    @hanifbahari6606 Рік тому

    I have a Strapi app with a .nev file, what should I do with the .env if I want to deploy from Github? Isn't it better to deploy the app manually ?

  • @andrews13
    @andrews13 9 місяців тому +1

    You saved my life!

  • @unknown_user869
    @unknown_user869 Рік тому

    Invalid host header on link
    after starting the developmwnt server

  • @2K20CO43ShobhitVerma
    @2K20CO43ShobhitVerma Рік тому

    Thank You!

  • @krishna-nakum
    @krishna-nakum Рік тому

    thanks alot for this video

  • @EdwardYambasu
    @EdwardYambasu Рік тому

    Thanks so much bro

  • @lolistrade3882
    @lolistrade3882 Рік тому

    you save me , thank you very much

  • @VivekMittal-yv4ry
    @VivekMittal-yv4ry Рік тому

    It is showing "exited with status 7 while building your code". Pls help to deploy my app

  • @JVSd-SG
    @JVSd-SG Місяць тому

    is it possible to deploy without github? When I wodn't share app to public.

    • @Morphrr
      @Morphrr 8 днів тому

      U can make it private

  • @alexandern9667
    @alexandern9667 11 місяців тому

    Do you know if it work with local mongo database?

  • @carlossuarez3666
    @carlossuarez3666 2 роки тому

    Thanks, help me a lot

  • @ajaysan2765
    @ajaysan2765 Рік тому

    Thank you so much

  • @zeusintheg8719
    @zeusintheg8719 Рік тому

    Thanks man, thanks a lot!

  • @a.m386
    @a.m386 Рік тому

    Thank you very much.

  • @dasithatharinda8503
    @dasithatharinda8503 2 роки тому

    worked for me. thanks

  • @elads1712
    @elads1712 2 роки тому

    how you connect the front end if the port changed?

  • @mohammedesa1651
    @mohammedesa1651 Рік тому

    Thanks for the vedio man

  • @rohangangwar6604
    @rohangangwar6604 2 роки тому

    how can it will be done using node why not use npm run and all ?? in the render scripts

  • @kakashi99908
    @kakashi99908 2 роки тому

    Is using mongoose/mongodb the same as what you shown? I know the local hosting is a bit more steps so I am not sure.

    • @Codebrah
      @Codebrah  2 роки тому

      Sorry late reply but I’m actually not sure.. try it and see what happens 😛

    • @manasuniyal2897
      @manasuniyal2897 2 роки тому

      Mongoose is a library that is helpful in communicating in Mongodb ( which is a database).

    • @emirmedrano2314
      @emirmedrano2314 2 роки тому

      You must to add MONGO_URI as environment variable

    • @yipyiphooray339
      @yipyiphooray339 2 роки тому

      @Antoniu Iepure I tried and failed. It was working perfectly, but my app wasn't the same anymore. I tried using the localhost server instead of Render and it was working fine. So it seems that Render is the problem here.

    • @jerryalbao2985
      @jerryalbao2985 2 роки тому +1

      It worked for me after adding render IP in mongodb whitelist. Open your app in render click connect then outbound.

  • @penknaja6587
    @penknaja6587 Рік тому

    can you be able to config the .env file on the production ?

  • @kossy_bml4407
    @kossy_bml4407 Рік тому

    How long do a node.js bot last?

  • @anonymous_hello
    @anonymous_hello Рік тому

    Thanks CodeBrah !

  • @nvcIT
    @nvcIT 6 місяців тому

    I'm having trouble connecting to the database while deloying. It gives me an error message like this "Error: connect ECONNREFUSED 127.0.0.1:3306" even though under my localhost the project still runs normally. Can you help? Can I explain this problem? Thank you very much.