Select Newly created Server and click the button "connect" at the top and goto SSH Client Tab. The key must not be publicly viewable for SSH to work. chmod 400 ~/Downloads/my-aws-key.pem,If you have opened terminal in same directory then we don't need to pass path just pass file name of keys otherwise pass complete path to keys. Open terminal window where we have downloaded our keys and update the permissions of the private key file with the command chmod 400 e.g. Once the newly created EC2 instance reaches a running state you can connect to it via SSH using the private key downloaded in the previous step. How to connect our local Machine's Terminal to Ubuntu EC2 Instance via SSH "mern-key-pair") and click "Download Key Pair" to download the private key, we will use this to connect to the server via SSH.Ĭlick "Launch Instances", then scroll to the bottom of the page and click "View Instances" to see details of the new Ubuntu EC2 instance that is launching.Ģ. Select "Create a new key pair", enter a name for the key pair (e.g. We need key pair to connect Terminal to Ubunto Server. Choose AMI - For learning purpspose you ca use "Free tier only", enter name of Your server in Name box and press enter, then select the "Ubuntu Server 18.04" Amazon Machine Image (AMI).Ĭhoose Instance Type -We are using Free Tier so We will Select the "t2.micro" (Free tier eligible) instance type and click "Configure Security Group" in the top menu.Ĭonfigure Security Group - Add a new rule to allow HTTP traffic then click "Review and Launch".Go to the EC2 Service section in AWS console.If you don't have an account yet click the "Create a Free Account" button and follow the instructions. Sign into the AWS Management Console at.How to Create a new Ubuntu Server on AWS EC2įirst thing we need for this tutorial is Server, follow these step to setup a new Ubuntu 18.04 Server instance on AWS EC2. Setup server with Node.js + MongoDB + NGINXĬonfigure NGINX to serve API and front-endġ. The goal of this is to setting up the server on AWS EC2, then deploying and configuring the frontend and backend pieces of the MERN stack app to work together. Other variations of the stack include the MEAN Stack that has an Angular front-end, and the MEVN Stack that has a Vue.js front-end. 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 MERN Stack application to it that supports user registration ,auth and Goal Setter function.Ī MERN Stack application is made up of a front-end app built with React that connects to a back-end api built with Node.js + Express + MongoDB, hence the name MERN Stack (Mongo, Express, React, Node). Deploy Backend and frontend of application.Setup and install Nodejs, MongoDB, PM2, NGINX.Connect local Terminal to Ubunto EC2 instance via SSH. Application that we are going to deploy is available at following address: MERN Stack Goal Setter Application This tutorial is focused on setting a Cloud server on AWS EC2 then deploymennt and configration of frontend and backend part of the MERN App to work. Other variations of stack include the MEAN Stack that has uses Angular as frontend and MEVN Stack that use Vue.js as frontend. In this post we are going to setup a production ready web server from scratch on AWS EC2 instace and deploy MERN Stack application that have regisistratioand Goal setting Functionality ?Ī MERN Stack application is made up of a front app built with React and React frontend is connected to backend api built with Node.js + Expressjs + MongoDB, hence the name MERN (MongoDB, Expressjs, React, Nodejs).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |