Compute Engine lets you create and run virtual machines on Google infrastructure.
-
Read Prerequisites and How to run a sample first.
-
Install dependencies:
With
npm:npm installWith
yarn:yarn install
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:
node sendgrid -
Open http://localhost:8080 in your browser
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:
node mailjet -
Open http://localhost:8080 in your browser
View the documentation or the source code.
Run the sample:
node vms
View the documentation or the source code.
Run the sample:
node vms_api
-
Set the
GCLOUD_PROJECTandGOOGLE_APPLICATION_CREDENTIALSenvironment variables. -
Run the tests:
With
npm:npm testWith
yarn:yarn test