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

  Рет қаралды 232,199

CodeBrah

CodeBrah

Күн бұрын

Пікірлер: 243
@Codebrah
@Codebrah Жыл бұрын
Having a hard time deploying your app? I'll do it for you, pain free: codingwithcodebrah.com/deploy-4-me
@kurdm1482
@kurdm1482 8 ай бұрын
thanks, i didn't specify the process.env.port, so it didn't go live, but with that added it works flawlessly. thanks bra!
@johntony366
@johntony366 Жыл бұрын
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 Жыл бұрын
LMAO He is doing his way leave poor the poor guy.
@starjohnson3040
@starjohnson3040 Жыл бұрын
He explained you could create .gitignore file
@SvitlanaYudina
@SvitlanaYudina Жыл бұрын
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!!!❤
@shivanshthakur4538
@shivanshthakur4538 Жыл бұрын
i want to see your backend baby
@victorsgbaptista
@victorsgbaptista 10 ай бұрын
I had the same issue! Thanks for the great content!
@al-ft1ng
@al-ft1ng Жыл бұрын
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
@tommetcalf3082
@tommetcalf3082 Жыл бұрын
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!
@Codebrah
@Codebrah Жыл бұрын
No problem, glad it helped.
@archuser532
@archuser532 Жыл бұрын
really help alought
@trollpro0108
@trollpro0108 Жыл бұрын
I love youuuuuu!!!!!!! After days of try and fail with other services, your video was my greenlight!!! Thanks for making the content
@Akiramenai04
@Akiramenai04 Жыл бұрын
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 !
@sujoyghosh7152
@sujoyghosh7152 Жыл бұрын
thanks a lot for the video brother. after wasting 2hrs trying to install express on netlify, this video done it in 10mins.
@stellanwae5050
@stellanwae5050 10 ай бұрын
Thank you sooo much for having this video. Simply explained. Thank you!
@darkagent9457
@darkagent9457 2 жыл бұрын
Thank you much bro! You just helped me move my site to render, I was so depressed about heroku, god bless you!
@Codebrah
@Codebrah 2 жыл бұрын
No problem!
@respect-dev-w7n
@respect-dev-w7n Жыл бұрын
it was my first time deploying .You made it easy thanks😁
@brunobrasil3419
@brunobrasil3419 6 ай бұрын
Just wanted to thank you and tell you that you deserve a bajillion subscribers. You have made my day! ❤
@КомилджонАрыкович
@КомилджонАрыкович Жыл бұрын
You are awesome man, I was mad with other KZbinrs tutorials. Keep going bro🔥🔥🔥
@mrnabby4178
@mrnabby4178 11 ай бұрын
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 11 ай бұрын
Me struggling for 5 hours
@mrnabby4178
@mrnabby4178 11 ай бұрын
@@nithya4860 with render?
@shlev13
@shlev13 2 ай бұрын
bro fr i had exactly the same issue
@mrnabby4178
@mrnabby4178 2 ай бұрын
@@shlev13 yeah
@kaiser_stash
@kaiser_stash 2 ай бұрын
daaaaamn, the best video maaan. U saved my BACK and my backend.
@suborno9249
@suborno9249 Жыл бұрын
5:41 How can i add .env files?
@ghaithNahdi-rn4xb
@ghaithNahdi-rn4xb 3 ай бұрын
create fille .env
@DarshanJainStud
@DarshanJainStud Жыл бұрын
Very short and crisp video. It helped me a lot. Thank you for creating such meaningful and easy content. Bhagwan Mahavir bless you.
@ahmedfarooq7253
@ahmedfarooq7253 Жыл бұрын
YOU ARE JUST AMAAZINGGG, YOU DESEVED 100000000000000M subsss, God Bless you bro
@guilliancelle7539
@guilliancelle7539 6 ай бұрын
Small question, if I have a .env how do I do
@korauo
@korauo 5 ай бұрын
add environment variables and click add from .env and then paste the contents of ur .env file in it.
@weggievillarante1029
@weggievillarante1029 Жыл бұрын
Thank you so much. It helps me a lot. This super easy! Thank for a detailed instruction.
@varvar3316
@varvar3316 2 жыл бұрын
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 2 жыл бұрын
@@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?
@saurabhbisht2238
@saurabhbisht2238 2 жыл бұрын
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.....
@andriikniaziev9242
@andriikniaziev9242 Жыл бұрын
Thank you so much! It is the first time i deployed app by myself))
@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 :)
@JVSd-SG
@JVSd-SG 18 күн бұрын
is it possible to deploy without github? When I wodn't share app to public.
@quangvunguyen2604
@quangvunguyen2604 2 жыл бұрын
what Cannot find module ‘/opt/render/project/src/app.js
@WaveFlightSimulations
@WaveFlightSimulations Жыл бұрын
i got same error
@sohamsaha5398
@sohamsaha5398 Жыл бұрын
Any update on this? I'm facing the same issue
@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 Жыл бұрын
😂😂😂 no problem man. Glad I could help
@nicolotiraboschi
@nicolotiraboschi Жыл бұрын
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?
@kazisamir123
@kazisamir123 2 жыл бұрын
can i deploy Backend express restApi on it
@evolve_everyday_0911
@evolve_everyday_0911 Жыл бұрын
bro you are literally saving lives....thanks for the tutorial
@Codebrah
@Codebrah Жыл бұрын
Happy to help
@pharmacyvell
@pharmacyvell Жыл бұрын
How do i install libraries on render? Such as 'dotenv' or 'cors'?
@Codebrah
@Codebrah Жыл бұрын
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'
@asprogramming120
@asprogramming120 Жыл бұрын
how to install library or imagemagick ... etc system level software on render during deployment
@justarandomguy6106
@justarandomguy6106 9 ай бұрын
will this work with websockets??
@__shubhamtiwari
@__shubhamtiwari 6 ай бұрын
Hello, have you tried ?
@justarandomguy6106
@justarandomguy6106 6 ай бұрын
@@__shubhamtiwari no, tell me if u do
@muhammedsinan3897
@muhammedsinan3897 Жыл бұрын
thanks a ton..man..You literally saved my lifetime project from collapsing..
@Codebrah
@Codebrah Жыл бұрын
Glad I could help!
@jacerchetoui709
@jacerchetoui709 2 жыл бұрын
Thank you so much man you just saved all my projects !! this is so much better than heroku
@dev8896
@dev8896 Жыл бұрын
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
@alexkroeger4113
@alexkroeger4113 2 жыл бұрын
I clicked on the web service and my card got declined. I guess I need other options.
@Abdullah-ayab
@Abdullah-ayab 9 ай бұрын
but they want credit info
@pablofernandez1555
@pablofernandez1555 Жыл бұрын
Thx bro. Instruction clear and simple
@eissafaheem6062
@eissafaheem6062 Жыл бұрын
I think there is a limit to api calls, If so then will socket events also exhaust this limit?
@jose.carlos_carmo
@jose.carlos_carmo Жыл бұрын
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?
@SHREYWITHSELLING
@SHREYWITHSELLING Жыл бұрын
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"
@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
@nvcIT
@nvcIT 5 ай бұрын
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.
@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 ?
@jorgeloaiza3406
@jorgeloaiza3406 Жыл бұрын
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?
@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.
@Dagoth90
@Dagoth90 Жыл бұрын
Thanks man, needed this!
@VivekMittal-yv4ry
@VivekMittal-yv4ry Жыл бұрын
It is showing "exited with status 7 while building your code". Pls help to deploy my app
@LordPsychocutioner
@LordPsychocutioner 8 ай бұрын
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
@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'
@kazisadman5142
@kazisadman5142 10 ай бұрын
You saved a lot time. thank you🙌
@rohangangwar6604
@rohangangwar6604 Жыл бұрын
how can it will be done using node why not use npm run and all ?? in the render scripts
@beatsfromfvtur
@beatsfromfvtur Жыл бұрын
thank you dude god bless you you helped me so much
@amarjeetkumarsingh733
@amarjeetkumarsingh733 Жыл бұрын
Thanks a lot...It helped me to deploy my full stack web app
@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!
@alexandern9667
@alexandern9667 10 ай бұрын
Do you know if it work with local mongo database?
@bong8385
@bong8385 11 ай бұрын
Render automatically installs all the npm packages that you need?
@umeshkumarbedi7216
@umeshkumarbedi7216 8 ай бұрын
Many Many Thanks. I was searching like that
@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 9 ай бұрын
upgrade their plan
@vishantt
@vishantt 9 ай бұрын
@@xd9050 man that's awesome advice! Were you born a genius or trained hard to be one?
@charan6154
@charan6154 Жыл бұрын
Thank's for the video man!! appreciate it
@playcode9750
@playcode9750 11 ай бұрын
Thanks man. straight to the point.
@priyankakataria7922
@priyankakataria7922 Жыл бұрын
Will it work with Node.js + Frontend (HTML,CSS, JavaScript)?
@elads1712
@elads1712 Жыл бұрын
how you connect the front end if the port changed?
@jleonelpm
@jleonelpm Жыл бұрын
Hey, my friend, you save me, was really useful. Regards
@penknaja6587
@penknaja6587 Жыл бұрын
can you be able to config the .env file on the production ?
@mnmmnnm8191
@mnmmnnm8191 Жыл бұрын
im so grateful for your help
@ddd99991
@ddd99991 Жыл бұрын
Yo u should keep posting tutorials. I like your thumbnails
@nsikansimon1939
@nsikansimon1939 Жыл бұрын
Thanks for the explanation man!
@iankamandew9777
@iankamandew9777 2 ай бұрын
Port was different coz of the .env file, im not sure how they handle that, but thanks for this.
@unknown_user869
@unknown_user869 Жыл бұрын
Invalid host header on link after starting the developmwnt server
@ApurvaKalvadeSDE
@ApurvaKalvadeSDE Жыл бұрын
How to deploy it with postgresql ??
@mrgioher2303
@mrgioher2303 2 ай бұрын
Thank you for your help, Brazilian regards.
@darkielee9395
@darkielee9395 Жыл бұрын
Thank you so much. This video is a life saver
@node_python_lover454
@node_python_lover454 2 жыл бұрын
very interesting service! Thanks for introducing it to us!
@lolwildriftbro
@lolwildriftbro 2 жыл бұрын
Thanks Man! It was really helpful!
@gocrazy6177
@gocrazy6177 8 ай бұрын
Thanks man you saved my job
@zohirbensalem7622
@zohirbensalem7622 Жыл бұрын
it was very well explained but i have this error : ConnectionRefusedError [SequelizeConnectionReffusederror]
@Codebrah
@Codebrah Жыл бұрын
Looks like a problem with SQL which render don't support for free
@zohirbensalem7622
@zohirbensalem7622 Жыл бұрын
@@Codebrah thank you
@GuilleAcosta124
@GuilleAcosta124 Жыл бұрын
Thanks! worked like a champ!!
@fake_rabbi
@fake_rabbi Жыл бұрын
You just saved me. Thank you so much
@syahriramadhani6182
@syahriramadhani6182 2 жыл бұрын
why do I get Cannot GET eventhough the deploy was success?
@Codebrah
@Codebrah 2 жыл бұрын
Did you end up getting it working? Maybe a port or URL issue?
@jinji.17
@jinji.17 Жыл бұрын
Me too. Did you find any solutions?
@syahriramadhani6182
@syahriramadhani6182 Жыл бұрын
@@Codebrah url issue thanks!
@syahriramadhani6182
@syahriramadhani6182 Жыл бұрын
@@jinji.17 check your url again~
@jinji.17
@jinji.17 Жыл бұрын
@@syahriramadhani6182 thanks
@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 Жыл бұрын
It worked for me after adding render IP in mongodb whitelist. Open your app in render click connect then outbound.
@subhamsingh4615
@subhamsingh4615 Жыл бұрын
when I click my link it shows bad gateway ?? HELP
@subhamsingh4615
@subhamsingh4615 Жыл бұрын
showing deploy in progress since half an hour
@mrcoder1822
@mrcoder1822 Жыл бұрын
thank you so much bro easy and fast
@DevelopmentLaboratory
@DevelopmentLaboratory 7 ай бұрын
Thanks man, i am from Brazil ❤
@kossy_bml4407
@kossy_bml4407 Жыл бұрын
How long do a node.js bot last?
@FGA-47
@FGA-47 2 жыл бұрын
thanks so much. that was really helpful
@nikhiljha3168
@nikhiljha3168 Жыл бұрын
How to connect MongoDB Database ?
@Codebrah
@Codebrah Жыл бұрын
Still need help? You can hire me to do it quickly: codingwithcodebrah.com/deploy-4-me
@MukeshKhannaJ
@MukeshKhannaJ 4 ай бұрын
excellent tutorial thank you
@thecodingbear
@thecodingbear Жыл бұрын
Thank you very much 🙏🙏🙏🙏🙏 I'm just looking for this and it just suddenly appeared before me
@CorlStream
@CorlStream 2 жыл бұрын
Thanks for the video! Greetings from brazil :)
@natureworld_23
@natureworld_23 Жыл бұрын
In render nodemailer is not working
@horizon_uz
@horizon_uz Жыл бұрын
thank you. My app working
@jhonacosta8450
@jhonacosta8450 Жыл бұрын
very useful and compact. ty
@jahidhasanjibon3982
@jahidhasanjibon3982 2 жыл бұрын
really help me a lot thank you so much.
@Codebrah
@Codebrah 2 жыл бұрын
No problem!
@jeanpaulduarteibarra4415
@jeanpaulduarteibarra4415 Жыл бұрын
Nice, I tried three times with others services and all them were paid or dont work, thank u
@andrews13
@andrews13 8 ай бұрын
You saved my life!
@vipuldev893
@vipuldev893 2 жыл бұрын
Getting 502 Error
@Kovelart
@Kovelart Жыл бұрын
same problem
@kacperkepinski4990
@kacperkepinski4990 2 жыл бұрын
can I keep mern there?
@emirmedrano2314
@emirmedrano2314 2 жыл бұрын
Yes, I already do that
3 Alternatives for Heroku's Free Tier - Full Stack & API Hosting
13:04
Traversy Media
Рет қаралды 223 М.
Build a REST API with Node JS and Express | CRUD API Tutorial
1:01:16
JavaScript Mastery
Рет қаралды 568 М.
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
Host Node JS Application for FREE on Back4App || NodeJS FREE Hosting
10:48
Heroku Is Dead, Here's What I Recommend
11:59
Theo - t3․gg
Рет қаралды 268 М.
Deploying Node.js on Render: The Best Free Alternative to Heroku
5:29
How to Deploy a Flask App to Render | Flask Render Deployment
11:04
Deploy NodeJS Application on AWS - Amazon Web Services | NodeJS
19:51
How to Deploy a Node.js App to Digital Ocean (Nginx, Ubuntu)
20:03
Hosting Springboot App on render.com
20:19
bobbyctchan
Рет қаралды 38 М.
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН