The click-to-deploy process for the MEAN development stack on Google Compute Engine is intended to help you get a development or test environment running quickly. You will learn the steps that were performed and a few best practices for running the stack on Google Compute Engine.
Objectives
- Learn about the click-to-deploy process and the optimizations that were made, such as running instances with the least privileges to ensure stability and security.
- Extend this knowledge to other applications and situations.
Deployment processing
The deployment of the MEAN stack is managed by Google Cloud Deployment Manager . Deployment Manager uses templates to help you deploy your configuration. These templates can include actions , which specify shell scripts that can contain specific deployment instructions. In the click-to-deploy templates, these scripts are specific to the MEAN stack and define the type of Compute Engine instance to create and how to install the MEAN stack on the instance.
Deployment of the MEAN development stack is managed by Google Cloud Deployment Manager . Deployment Manager uses templates and associated shell scripts to perform the deployment steps, which includes creating the virtual machine instance, and installing and configuring the MEAN stack software on the instance.
MEAN development stack module
When the MEAN stack instance is created, Deployment Manager completes the following steps:
- Download the NodeJS software and source code.
-
Install the NodeJS software and copy the source code to
/usr/src
. -
Install the
npm
package manager. - Download the MongoDB software and source code.
-
Install the MongoDB software and copy the source code to
/usr/src
. - Install bower.
- Install the MEAN software framework.
Next steps
- Connect to the sample app
-
You can connect to the sample app, which is running at
http://<your-external-ip-address>:3000/
. You can look up your IP addresses by using thegcutil listinstances
command or you can find them in the Developers Console . - Configure your virtual machine instances
-
Use
gcutil ssh
to connect to the external IP addresses for your machines and perform any system configuration that you might need on each server. You can look up your IP addresses by using thegcutil listinstances
command or you can find them in the Developers Console . - Learn more about MEAN.io
- Check out the MEAN documentation .