Google Compute Engine Node.js Samples
Compute Engine lets you create and run virtual machines on Google infrastructure.
Table of Contents
Setup
-
Read Prerequisites and How to run a sample first.
-
Install dependencies:
Samples
Sending mail with Sendgrid
View the documentation or the source code.
Run the sample:
-
Set the
SENDGRID_API_KEYenvironment variable:export SENDGRID_API_KEY=<your-sendgrid-api-key> -
Start the server:
-
Open http://localhost:8080 in your browser
Sending mail with Mailjet
View the documentation or the source code.
Run the sample:
-
Set the
MAILJET_API_KEYenvironment variable:export MAILJET_API_KEY=<your-mailjet-api-key> -
Set the
MAILJET_API_SECRETenvironment variable:export MAILJET_API_SECRET=<your-mailjet-api-secret> -
Start the server:
-
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: