GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — nodejs-docs-samples/computeengine at master · enterstudio/nodejs-docs-samples

Expand file tree

/

computeengine

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

computeengine

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
system-test
system-test
 
 
test
test
 
 
README.md
README.md
 
 
mailjet.js
mailjet.js
 
 
package.json
package.json
 
 
sendgrid.js
sendgrid.js
 
 
vms.js
vms.js
 
 
vms_api.js
vms_api.js
 
 
yarn.lock
yarn.lock
 
 

README.md

Outline

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
  • Samples
    • Sending mail with Sendgrid
    • Sending mail with Mailjet
    • Listing instances (recommended)
    • Listing instances

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
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.