As we have build our nodejs application, we need to deploy it to AWS, so that we can visit it in the world.
- Mongodb
- Nodejs
- Git
- Nginx
Assuming you're gonna provision a ubuntu machine. Before you start, run:
sudo apt-get update
You can find details here.
sudo apt-get install -y mongodb
After it, please specify the path that mongodb need to put the data in,
mkdir -p /data/db
or
mongod --dbpath /some/existing/path
sudo apt-get install -y nodejs
sudo apt-get install -y git
sudo apt-get install -y nginx
Note: The default Nginx directory in Ubuntu is /usr/share/nginx/html