nodejs-docs-samples/computeengine at master · batlogs/nodejs-docs-samples

Skip to content

Navigation Menu

Sign in

Appearance settings

Latest commit

Google Cloud Platform logo

Google Compute Engine Node.js Samples

Compute Engine lets you create and run virtual machines on Google infrastructure.

Table of Contents

Setup

  1. Read Prerequisites and How to run a sample first.

  2. Install dependencies:

Samples

Sending mail with Sendgrid

View the documentation or the source code.

Run the sample:

  1. Set the SENDGRID_API_KEY environment variable:

     export SENDGRID_API_KEY=<your-sendgrid-api-key>
    
  2. Start the server:

  3. Open http://localhost:8080 in your browser

Sending mail with Mailjet

View the documentation or the source code.

Run the sample:

  1. Set the MAILJET_API_KEY environment variable:

     export MAILJET_API_KEY=<your-mailjet-api-key>
    
  2. Set the MAILJET_API_SECRET environment variable:

     export MAILJET_API_SECRET=<your-mailjet-api-secret>
    
  3. Start the server:

  4. Open http://localhost:8080 in your browser

Listing instances (recommended)

View the documentation or the source code.

Run the sample:

Listing instances

View the documentation or the source code.

Run the sample: