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...
Having a hard time deploying your app?
I'll do it for you, pain free: codingwithcodebrah.com/deploy-4-me
thanks, i didn't specify the process.env.port, so it didn't go live, but with that added it works flawlessly. thanks bra!
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!!!❤
i want to see your backend baby
I had the same issue! Thanks for the great content!
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!
No problem, glad it helped.
really help alought
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
I love youuuuuu!!!!!!! After days of try and fail with other services, your video was my greenlight!!! Thanks for making the content
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🔥🔥🔥
Just wanted to thank you and tell you that you deserve a bajillion subscribers. You have made my day! ❤
Thank you sooo much for having this video. Simply explained. Thank you!
it was my first time deploying .You made it easy thanks😁
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.
LMAO
He is doing his way leave poor the poor guy.
He explained you could create .gitignore file
thanks a lot for the video brother. after wasting 2hrs trying to install express on netlify, this video done it in 10mins.
Very short and crisp video. It helped me a lot. Thank you for creating such meaningful and easy content. Bhagwan Mahavir bless you.
Thank's man!!! You saved me! I had to quickly run with Heroku. Very on time and great service! God bless you! 🙏🙏🙏
God bless you aswell my friend!
@@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!
@@varvar3316 hey CodeBrah I can help you with anything you need I had been studying for one year on mern stack.
@@andrewberrio7374 can we deploy websites with socket use in them in render?
Thank you so much. It helps me a lot. This super easy! Thank for a detailed instruction.
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.
Me struggling for 5 hours
@@nithya4860 with render?
Thank you very much bro , I was searching for a alternate for a really long time , u saved my backend bro :)
Small question, if I have a .env how do I do
add environment variables and click add from .env and then paste the contents of ur .env file in it.
Thanks man, needed this!
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.
What? Vercel works for node if you don't plan on using websockets, whatever it's done now
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.....
i am getting module not found even though it is working perfectly on localhost ? please help
YOU ARE JUST AMAAZINGGG, YOU DESEVED 100000000000000M subsss, God Bless you bro
I clicked on the web service and my card got declined. I guess I need other options.
Thank you so much! It is the first time i deployed app by myself))
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?
bro you are literally saving lives....thanks for the tutorial
Happy to help
but they want credit info
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?
I never thought that Clint Eastwood would save me Haha, seriously man thanks a lot I always have problems hosting an application.
😂😂😂 no problem man. Glad I could help
thank you dude god bless you you helped me so much
Thanks man. straight to the point.
Thank's for the video man!! appreciate it
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.
How do i install libraries on render? Such as 'dotenv' or 'cors'?
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'
Many Many Thanks. I was searching like that
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.
Thx bro. Instruction clear and simple
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?
Hey, my friend, you save me, was really useful. Regards
will this work with websockets??
Hello, have you tried ?
@@__shubhamtiwari no, tell me if u do
im so grateful for your help
what Cannot find module ‘/opt/render/project/src/app.js
i got same error
Any update on this?
I'm facing the same issue
thanks a ton..man..You literally saved my lifetime project from collapsing..
Glad I could help!
Thanks a lot...It helped me to deploy my full stack web app
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 ?
that is good if you have to handle little data, but if not.. onrender is too slow. A better option is vercel or railway
Thank you so much. This video is a life saver
You saved a lot time. thank you🙌
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"
can i deploy Backend express restApi on it
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'
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
Thanks for the explanation man!
Thank you much bro! You just helped me move my site to render, I was so depressed about heroku, god bless you!
No problem!
Thanks man you saved my job
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 ?
Thanks! worked like a champ!!
Thanks Man! It was really helpful!
Yo u should keep posting tutorials. I like your thumbnails
excellent tutorial thank you
very interesting service! Thanks for introducing it to us!
You just saved me. Thank you so much
It is showing "exited with status 7 while building your code". Pls help to deploy my app
I think there is a limit to api calls, If so then will socket events also exhaust this limit?
Thank you very much 🙏🙏🙏🙏🙏 I'm just looking for this and it just suddenly appeared before me
how to install library or imagemagick ... etc system level software on render during deployment
You saved my life!
Will it work with Node.js + Frontend (HTML,CSS, JavaScript)?
thank you so much bro easy and fast
Thanks man, i am from Brazil ❤
thank you. My app working
thanks so much. that was really helpful
Invalid host header on link
after starting the developmwnt server
give this man a cookie
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!
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!
very useful and compact. ty
Thanks for the video!
Greetings from brazil :)
Thank you really helpful
Thanks a lot :-)
You're welcome!
how you connect the front end if the port changed?
really help me a lot thank you so much.
No problem!
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?
upgrade their plan
@@xd9050 man that's awesome advice! Were you born a genius or trained hard to be one?
it worked thanks!
Render automatically installs all the npm packages that you need?
Nice, I tried three times with others services and all them were paid or dont work, thank u
Thank You!
thank you very mush!
Thanks man, thanks a lot!
Thank you so much!
Thanks so much bro
can you be able to config the .env file on the production ?
thank you for the explain
thanks that worked for me :))
Thank you so much! 🙂
Great video man
Thanks CodeBrah !
Thanks, help me a lot
worked for me. thanks
you save me , thank you very much