Deploy Node.js Backend on AWS EC2 Windows

  Рет қаралды 11,111

Prograamer

Prograamer

2 жыл бұрын

How to deploy node.js express server on AWS EC2 Windows instance and make it available to all over the world.
Docker Tutorial:
Docker Tutorial 1: What is Docker, How it Solves Development Problems, and Why Developers Need It. - studio.kzbin.infoPPvG...
Docker Tutorial 2: How to build Docker images and containers using an API, and their differences. - studio.kzbin.infoFapm...
Docker Tutorial 3: In a Node.js API, what is the mechanism for Docker container data persistence? - studio.kzbin.infoTXIo...
Docker Tutorial 4: How to pass environment variables to a Node.js API from a Docker container? - studio.kzbin.infoMiBS...
Docker Tutorial 5: How to link Docker containers PostgreSQL, PGAdmin & pass Environment Variables? - studio.kzbin.infov1m6...
Docker Tutorial 6: How to connect Docker containers & persist data using Docker Compose for Database & Node.js. - • How to connect Docker ...
#dockercompose #containerization #DataPersistence #postgresql #pgadmin #nodejs #api #environmentvariables #devops #softwaredevelopment #cloudcomputing #virtualization #programmingtutorial #learningresources #docker #dockercompose #containerization #devops #microservicestutorial #CI/CD #orchestration #kubernetes #dockerfile #dockerswarm #dockernetworking #ContainerManagement #ContainerDeployment #cloudnative #ContainerRegistry #dockerimage #devopstools #DevOpsCulture #devopscommunity
#nodejstutorial #dockervideos #dockerhub #dockerimage #dockercommands #dockercontainer #dockercompose #javascript #javascripttutorial
Meet programmer around the world by joining this whatsapp channel - whatsapp.com/channel/0029VaDx...

Пікірлер: 57
@prograamer
@prograamer 2 ай бұрын
"Enjoying the content? Hit that subscribe button to stay updated with more!"
@liveLifeHappyFull
@liveLifeHappyFull Жыл бұрын
Thank you so much for your video. I was struggling for days to figure out the why my website was not accessible and after I took care of the firewall you mentioned at the end of the video it finally worked!!!!
@prograamer
@prograamer Жыл бұрын
Thank you for your kind words! I'm happy to hear that you enjoyed the video. If you have any questions, feel free to ask and I'll do my best to help you out.
@redymotion8534
@redymotion8534 Жыл бұрын
Thank you so much
@allainzenithn.sabandal2299
@allainzenithn.sabandal2299 7 ай бұрын
Thank you soo much! You've been a great help.
@prograamer
@prograamer 7 ай бұрын
No worries, glad that helped!
@malnadnaik
@malnadnaik 7 ай бұрын
Hay really appreciate man thank you so much.❤
@prograamer
@prograamer 7 ай бұрын
Happy to help
@openworld6524
@openworld6524 9 ай бұрын
Thanks a lot sir. Your video solved a very big problem for me.
@prograamer
@prograamer 9 ай бұрын
No worries. I'm glad that it helped.
@Teslapill
@Teslapill 9 ай бұрын
Thanks for this!
@prograamer
@prograamer 9 ай бұрын
No worries mate. Please do subscribe
@kaiiscoming
@kaiiscoming 10 ай бұрын
really thank u 🤪
@prograamer
@prograamer 10 ай бұрын
No worries
@quadriusman6683
@quadriusman6683 Жыл бұрын
Very good, thanks so much
@prograamer
@prograamer Жыл бұрын
You're welcome
@musiclist7108
@musiclist7108 Жыл бұрын
Thanks for neat explainations..first time i created VM
@prograamer
@prograamer Жыл бұрын
You're welcome
@japan9169
@japan9169 8 ай бұрын
Thanks so much for this video. How can I hide my port number or simply redirect port 80 request of the ec2 instance to the port 3000 inside the ec2 instance.
@bestbroth6328
@bestbroth6328 4 ай бұрын
Thank you broo
@prograamer
@prograamer 4 ай бұрын
No problem. If you really like my work please do subscribe! Cheers
@sumanthreddy5613
@sumanthreddy5613 Жыл бұрын
Thank you
@prograamer
@prograamer Жыл бұрын
No worries
@sumanthreddy5613
@sumanthreddy5613 Жыл бұрын
@@prograamer I was not aware of that firewall thing and trying it from 3 hours. This video finally helped me.
@prograamer
@prograamer Жыл бұрын
I’m glad that it was helpful. But I would not recommend to deploy production based applications on Windows it’s unsecured. Try this How to Deploy a Node.js (Express) Server Docker Container to AWS via Elastic Container Registry kzbin.info/www/bejne/iYuyfnt-fNh0itk
@Sheo329
@Sheo329 4 ай бұрын
Thanks a lot for this you saved me like 2 days of research on how to reach port 3000... Instead of turning the firewall offw can i just add a rule in the firewall to grant access to the 3000 port ?
@prograamer
@prograamer 4 ай бұрын
Correct, just configure 3000 port in the firewall to access the server publicly. That's the best practices! Do subscribe if you think that really helped!
@Sheo329
@Sheo329 4 ай бұрын
Y@@prograamer I did :) welle it turned out that it doesn't work for me. I installed a MEAN app on my EC2, I installed IIS for the front part (angular) and it's running ok. On my server localhost, my app is fully functional, but when I try to access it from my computer , the front is correctly loading but the 3000 port give me a timeout. Any idea why ? (I modified the inbound and outbound rules in my security group to add the 3000 port and totally deactivate the firewall...)
@prograamer
@prograamer 4 ай бұрын
Great! Try checking inbound rule of your EC2 instance and make sure to… Choose 'Add rule'. For 'Type', choose 'Custom TCP'. For 'Protocol', enter 'tcp'. For 'Port range', enter '3000'. For 'Source', choose 'Anywhere' or specify your local machine's IP address. Choose 'Save rules'
@tayyabmanzoor4023
@tayyabmanzoor4023 Жыл бұрын
Greate video sir thanks a lot. but I have one question how can we add SSL certificate because I have frontend app deployed on was amplify and it's gives the error of ssl.
@prograamer
@prograamer 11 ай бұрын
No worries my friend. You can transfer your SSL certificate to EC2 instance and then make sure to integrate that in node.js application using https module
@tayyabmanzoor4023
@tayyabmanzoor4023 11 ай бұрын
@@prograamer thank you so much, sir
@rotimiogungbenle3498
@rotimiogungbenle3498 Жыл бұрын
On the Git, when you do GIT clone. How do you get the link ? I don’t know how to get it .
@prograamer
@prograamer Жыл бұрын
On you're github account, under your repository name, click Clone or Download button to get the link.
@rotimiogungbenle3498
@rotimiogungbenle3498 Жыл бұрын
@@prograamer I found it . thank you
@shashwatbajpai5725
@shashwatbajpai5725 8 ай бұрын
the aws ip4 link is working on my ec2 instance but not on my original machine also i have turned off the firewall settings please help...
@prograamer
@prograamer 7 ай бұрын
Check the inbound and outbound ports of your EC2 instance on AWS console
@shashwatbajpai5725
@shashwatbajpai5725 7 ай бұрын
Thank you it's fixed now..
@user-yi3ds4jo3n
@user-yi3ds4jo3n 9 ай бұрын
Thanks 4 screen explanation help to understand easily , one question , how much it will cost for a month in India ?
@prograamer
@prograamer 9 ай бұрын
No worries. The cost will be free in your in free tier for one year. But there will headaches of maintaining it. After that it costs around $8.4/month USD for t3.micro instance which much small instance. That's why I would go with docker and serverless where you can pay as you go.
@TrainWithOK
@TrainWithOK 11 ай бұрын
You saved my day. I am unable to access my ndoejs app from internet, I researched a lot but didn't found solution. Only pending is firewall turn off with that its resolved. But as part of security how to overcome this and make it automate?
@prograamer
@prograamer 11 ай бұрын
Thank you. To ensure security, please make sure to allow the application port through your firewall. Alternatively, you can consider using a Linux server, as it is highly recommended when working with Docker. I also have a video available on this video which might be helpful to you.
@darknights5020
@darknights5020 Жыл бұрын
is it possible to connect with you over linkedIn?
@darknights5020
@darknights5020 Жыл бұрын
@@prograamer thank you so much..
@tahaaziz5233
@tahaaziz5233 Жыл бұрын
hey.Can u upload the whole video while installing all the packages on the server?
@prograamer
@prograamer Жыл бұрын
If you don't want much overhead in regards to the configuration try this kzbin.info/www/bejne/iYuyfnt-fNh0itk
@manub4179
@manub4179 10 ай бұрын
Bro i need to deploy MySQL express react nodejs app on windows ec2 can you help me pls
@prograamer
@prograamer 8 ай бұрын
That's a good request. I like this. Will create one for you mate.
@tahaaziz5233
@tahaaziz5233 Жыл бұрын
i want all the commands u used in git bash.
@prograamer
@prograamer Жыл бұрын
Just follow these steps and you're good to go. docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/connecting_to_windows_instance.html
@Driveshive
@Driveshive Жыл бұрын
is AWS free?
@prograamer
@prograamer Жыл бұрын
Yes, it's free for new users for one year
@MrNewRevolutionary
@MrNewRevolutionary Жыл бұрын
I Followed it but get a 404 error!
@prograamer
@prograamer Жыл бұрын
Hey mate, it should work. Check your url, 404 error illustrates wrong url client side error. Additionally, try testing the API locally first. Check whether you can access it. If not there is a issue in server. If yes then there is issue in firewall. Both solutions are described in the video. Good luck
@MrNewRevolutionary
@MrNewRevolutionary Жыл бұрын
@@prograamer I forgot I added '/api' as the route instead of '/' - Thank you for you videos! I've subbed 👍
How To Choose Ramen Date Night 🍜
00:58
Jojo Sim
Рет қаралды 54 МЛН
Trágico final :(
01:00
Juan De Dios Pantoja
Рет қаралды 24 МЛН
Hosting a Docker Container on AWS EC2 Free Tier in under 12 minutes
11:35
Vincent Stevenson
Рет қаралды 28 М.
How to deploy a Node Express API to AWS EC2 instance
18:17
JonathanSanchez
Рет қаралды 50 М.
Deploy A Fullstack REACT APP on AWS EC2
23:53
Koding 101
Рет қаралды 48 М.
100+ Docker Concepts you Need to Know
8:28
Fireship
Рет қаралды 746 М.
Deploy a Node.js application on AWS Elastic Beanstalk
8:33
Digital Cloud Training
Рет қаралды 29 М.
Deploy MERN Stack App On AWS EC2 Using GitHub Actions
56:21
Integration Ninjas
Рет қаралды 8 М.
Deploy NodeJS Application on AWS - Amazon Web Services | NodeJS
19:51