Skip to content

Latest commit

 

History

History
93 lines (53 loc) · 2.32 KB

README.md

File metadata and controls

93 lines (53 loc) · 2.32 KB

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:

     npm install
    

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:

     node sendgrid
    
  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:

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

Listing instances (recommended)

View the documentation or the source code.

Run the sample:

node vms

Listing instances

View the documentation or the source code.

Run the sample:

node vms_api