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 install
With
yarn
:yarn install
View the documentation or the source code.
Run the sample:
-
Set the
SENDGRID_API_KEY
environment 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_KEY
environment variable:export MAILJET_API_KEY=<your-mailjet-api-key>
-
Set the
MAILJET_API_SECRET
environment 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_PROJECT
andGOOGLE_APPLICATION_CREDENTIALS
environment variables. -
Run the tests:
With
npm
:npm test
With
yarn
:yarn test