Angular + Node.js on AWS - How to Deploy a MEAN Stack App to Amazon EC2

Hosting on Aws – Angular + Node.js on AWS – How to Deploy a MEAN Stack App to Amazon EC2


Angular + Node.js on AWS – How to Deploy a MEAN Stack App to Amazon EC2

Hosting on Aws

In this tutorial we’re going to setup a production ready web server from scratch on the Amazon EC2 (Elastic Compute Cloud) service, then deploy a custom MEAN Stack application to it that supports user registration and authentication.

BLOG POST:

VIDEO SECTIONS
2:08 Create a new Ubuntu Server on AWS EC2
4:48 Connect to Ubuntu EC2 Instance via SSH
8:47 Setup server with Node.js + MongoDB + NGINX
10:10 Deploy Node.js + MongoDB back-end API
11:44 Build and Deploy Angular Front-end app
21:12 Configure NGINX to serve API and front-end
23:17 Test the MEAN Stack app in a browser

SUBSCRIBE TO SEE MORE:

BLOG:
TWITTER:
GITHUB:

you search:

Hosting on Aws

Angular + Node.js on AWS – How to Deploy a MEAN Stack App to Amazon EC2

28 thoughts on “Hosting on Aws – Angular + Node.js on AWS – How to Deploy a MEAN Stack App to Amazon EC2

  1. Hello. Thanks. It works like a charm. May i know how to configure ssl and configure with domain? Please help me out to do this as there are very less tutorials available for this.

  2. If somebody has this message when try to send files from your pc to the server (front-end) ssh_init network error cannot assign requested address, Just add -P 22 on line cmd

  3. i followed this tutorial but am getting a "connection refused" error.. any tips on that? i also have my angular dist folder in my express project, so as of now my front and back are running on same port locally, does ngnix work for that?

  4. great stuff. Although I am still waiting for a more definitive guide on why to use Angular vs React. Going to now watch your MERN deployment video (thanks for doing both!). Love following along with the website too, really makes your videos perfect for me.

  5. Jason, Hello from Mobile, Alabama, USA. Excellent tutorial. I found it necessary to install webpack prior to building the angular app. And I did all the building within the server just to simplify things.

  6. Thanks a lot…You saved my day. However, if an Angular app uses Universal (SSR), is there any way to deploy to EC2? I wonder if the same as your video. Could you make video deploy the Angular Universal to EC2?

Leave a Reply

Your email address will not be published. Required fields are marked *