Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)



Click-to-deploy MEAN development stack: How it works

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:

  1. Download the NodeJS software and source code.
  2. Install the NodeJS software and copy the source code to /usr/src .
  3. Install the npm package manager.
  4. Download the MongoDB software and source code.
  5. Install the MongoDB software and copy the source code to /usr/src .
  6. Install bower.
  7. 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 the gcutil 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 the gcutil listinstances command or you can find them in the Developers Console .
Learn more about MEAN.io
Check out the MEAN documentation .

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.