MERN App Deployment on Amazon AWS - May 2018
This tutorial how to deploy a MERN application onto AWS cloud.
EC2 Ubuntu setup scripts
Update ubuntu packages
sudo apt-get update
Install git
sudo apt-get install -y git
Install mongo 3.6.3
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.6.list
sudo apt-get update
sudo apt-get install -y mongodb-org=3.6.3 mongodb-org-server=3.6.3 mongodb-org-shell=3.6.3 mongodb-org-mongos=3.6.3 mongodb-org-tools=3.6.3
echo "mongodb-org hold" | sudo dpkg --set-selections
echo "mongodb-org-server hold" | sudo dpkg --set-selections
echo "mongodb-org-shell hold" | sudo dpkg --set-selections
echo "mongodb-org-mongos hold" | sudo dpkg --set-selections
echo "mongodb-org-tools hold" | sudo dpkg --set-selections
sudo service mongod start
Install node
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
S3 - bucket policy
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AddPerm",
"Effect": "Allow",
"Principal": "",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::<bucket-name>/"
}
]
}
▶️ DTube
▶️ IPFS
Leave MERN App Deployment on Amazon AWS - May 2018 to:
Read more #aws posts
Best Posts From Nikhil Das Nomula
We have not curated any of nikhildasnomula's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From Nikhil Das Nomula
- My story 60 years from now
- Bitdrive pre-sale is live!!
- Nikhil and Kristy - We meet
- Bitdrive whitepaper analysis
- MERN App Deployment on Amazon AWS - May 2018
- Affirmations from The art of Mental Training - Chapter 22 - Changing your mental state
- The are of mental training - Chapter 18 - What is my dream?
- How the US of A helped me to love myself and helped me finding love
- Why programming a mandatory skill?
- Who am I