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

Поделиться
HTML-код
  • Опубликовано: 26 сен 2024
  • In this video I will teach you how to deploy a Node app for free to render.com. Render is a free hosting platform, similar to Heroku for static websites, web apps like Node.JS and more.
    Having a hard time deploying your app? I'll do it for you, pain free:
    ​codingwithcode...
    Please like and comment if this helped you! I normally teach native iOS development with Swift so if you want to learn that please subscribe!
    Check out more Linux and server deployment videos here:
    • Linux & Server Tutorials
    Hire Me:
    www.fiverr.com...

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

  • @Codebrah
    @Codebrah  Год назад +11

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

    • @kurdm1482
      @kurdm1482 6 месяцев назад

      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!!!❤

  • @tommetcalf3082
    @tommetcalf3082 Год назад +7

    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!

  • @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 11 месяцев назад +2

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

  • @Akiramenai04
    @Akiramenai04 Год назад +4

    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 !

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

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

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

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

  • @stellanwae5050
    @stellanwae5050 7 месяцев назад +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😁

  • @johntony366
    @johntony366 Год назад +19

    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 Год назад +2

      He explained you could create .gitignore file

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

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

  • @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.

  • @varvar3316
    @varvar3316 Год назад +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

      God bless you aswell my friend!

    • @varvar3316
      @varvar3316 Год назад +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 Год назад

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

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

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

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

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

  • @mrnabby4178
    @mrnabby4178 8 месяцев назад +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 8 месяцев назад +1

      Me struggling for 5 hours

    • @mrnabby4178
      @mrnabby4178 8 месяцев назад

      @@nithya4860 with render?

  • @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 :)

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

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

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

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

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

    Thanks man, needed this!

  • @dev8896
    @dev8896 Год назад +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

  • @saurabhbisht2238
    @saurabhbisht2238 Год назад +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.....

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

    i am getting module not found even though it is working perfectly on localhost ? please help

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

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

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

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

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

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

  • @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?

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

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

  • @Abdullah-ayab
    @Abdullah-ayab 6 месяцев назад +1

    but they want credit info

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

    Hi Friend, I have an Angular application with webservice in Render with my application I create rooms and generate a code for each room, as when accessing this room in another browser I receive the message below: Failed to load resource: the server responded with a status of 404 () (Page Not Found) . Do you know what might have happened?

  • @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

  • @stan-beats
    @stan-beats Год назад +1

    thank you dude god bless you you helped me so much

  • @playcode9750
    @playcode9750 8 месяцев назад

    Thanks man. straight to the point.

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

    Thank's for the video man!! appreciate it

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

    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.

  • @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'

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

    Many Many Thanks. I was searching like that

  • @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.

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

    Thx bro. Instruction clear and simple

  • @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?

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

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

  • @justarandomguy6106
    @justarandomguy6106 6 месяцев назад +2

    will this work with websockets??

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

    im so grateful for your help

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

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

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

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

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

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

  • @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 ?

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

    that is good if you have to handle little data, but if not.. onrender is too slow. A better option is vercel or railway

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

    Thank you so much. This video is a life saver

  • @kazisadman5142
    @kazisadman5142 7 месяцев назад

    You saved a lot time. thank you🙌

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

    hey !! I am getting this error please help me .......🤕
    error mongoose@7.2.0: The engine "node" is incompatible with this module. Expected version ">=14.20.1". Got "14.17.0"

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

    can i deploy Backend express restApi on it

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

    Hello, help! In my project I have tasks scheduled with node-cron. It gives me the following error when doing the deploy, I followed your steps as is.
    Mar 23 12:54:12 AM Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'node-cron' imported from /opt/render/project/src/src/index.js
    Mar 23 12:54:12 AM at packageResolve(internal/modules/esm/resolve.js:655:9)
    Mar 23 12:54:12 AM at moduleResolve (internal/modules/esm/resolve.js:696:18)
    Mar 23 12:54:12 AM at Loader.defaultResolve [as _resolve] (internal/modules/esm/resolve.js:810:11)
    Mar 23 12:54:12 AM at Loader.resolve (internal/modules/esm/loader.js:88:40)
    Mar 23 12:54:12 AM at Loader.getModuleJob (internal/modules/esm/loader.js:241:28)
    Mar 23 12:54:12 AM at ModuleWrap. (internal/modules/esm/module_job.js:56:40)
    Mar 23 12:54:12 AM at link (internal/modules/esm/module_job.js:55:36) {
    Mar 23 12:54:12 AM code: 'ERR_MODULE_NOT_FOUND'

  • @LordPsychocutioner
    @LordPsychocutioner 6 месяцев назад

    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

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

    Thanks for the explanation man!

  • @darkagent9457
    @darkagent9457 Год назад +4

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

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

    Thanks man you saved my job

  • @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 ?

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

    Thanks! worked like a champ!!

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

    Thanks Man! It was really helpful!

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

    Yo u should keep posting tutorials. I like your thumbnails

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

    excellent tutorial thank you

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

    very interesting service! Thanks for introducing it to us!

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

    You just saved me. Thank you so much

  • @VivekMittal-yv4ry
    @VivekMittal-yv4ry Год назад

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

  • @eissafaheem6062
    @eissafaheem6062 10 месяцев назад

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

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

    Thank you very much 🙏🙏🙏🙏🙏 I'm just looking for this and it just suddenly appeared before me

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

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

  • @andrews13
    @andrews13 5 месяцев назад +1

    You saved my life!

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

    Will it work with Node.js + Frontend (HTML,CSS, JavaScript)?

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

    thank you so much bro easy and fast

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

    Thanks man, i am from Brazil ❤

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

    thank you. My app working

  • @FGA-47
    @FGA-47 Год назад

    thanks so much. that was really helpful

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

    Invalid host header on link
    after starting the developmwnt server

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

    give this man a cookie

  • @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!

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

    very useful and compact. ty

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

    Thanks for the video!
    Greetings from brazil :)

  • @anandaj4764
    @anandaj4764 10 месяцев назад

    Thank you really helpful

  • @b_1729-j8j
    @b_1729-j8j Год назад +1

    Thanks a lot :-)

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

    how you connect the front end if the port changed?

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

    really help me a lot thank you so much.

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

    It takes 20-30 secs for my website on Render to load after it has not been used for 2-3 hours. Basically it starts/executes the website again only after the url is hit. Why does that happen and what can I do to make it faster?

    • @xd9050
      @xd9050 6 месяцев назад

      upgrade their plan

    • @vishantt
      @vishantt 6 месяцев назад

      @@xd9050 man that's awesome advice! Were you born a genius or trained hard to be one?

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

    it worked thanks!

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

    Render automatically installs all the npm packages that you need?

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

    Nice, I tried three times with others services and all them were paid or dont work, thank u

  • @2K20CO43ShobhitVerma
    @2K20CO43ShobhitVerma 8 месяцев назад

    Thank You!

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

    thank you very mush!

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

    Thanks man, thanks a lot!

  • @chaitanyapawar5483
    @chaitanyapawar5483 7 месяцев назад

    Thank you so much!

  • @EdwardYambasu
    @EdwardYambasu 8 месяцев назад

    Thanks so much bro

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

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

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

    thank you for the explain

  • @devmistry2607
    @devmistry2607 6 месяцев назад

    thanks that worked for me :))

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

    Thank you so much! 🙂

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

    Great video man

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

    Thanks CodeBrah !

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

    Thanks, help me a lot

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

    worked for me. thanks

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

    you save me , thank you very much