-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove compute samples which have moved. (#514)
- Loading branch information
Showing
12 changed files
with
5 additions
and
569 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,115 +1,5 @@ | ||
<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/> | ||
Samples for the [Google Compute Engine API Node.js Client][client] have moved to | ||
[github.com/googleapis/nodejs-compute/tree/master/samples/][samples]. | ||
|
||
# Google Compute Engine Node.js Samples | ||
|
||
[Compute Engine][compute_docs] lets you create and run virtual machines on | ||
Google infrastructure. | ||
|
||
[compute_docs]: https://cloud.google.com/compute/docs/ | ||
|
||
## Table of Contents | ||
|
||
* [Setup](#setup) | ||
* [Samples](#samples) | ||
* [Sending mail with Sendgrid](#sending-mail-with-sendgrid) | ||
* [Sending mail with Mailjet](#sending-mail-with-mailjet) | ||
* [Listing instances (recommended)](#listing-instances-recommended) | ||
* [Listing instances](#listing-instances) | ||
* [Running the tests](#running-the-tests) | ||
|
||
## Setup | ||
|
||
1. Read [Prerequisites][prereq] and [How to run a sample][run] first. | ||
1. Install dependencies: | ||
|
||
With `npm`: | ||
|
||
npm install | ||
|
||
With `yarn`: | ||
|
||
yarn install | ||
|
||
[prereq]: ../README.md#prerequisities | ||
[run]: ../README.md#how-to-run-a-sample | ||
|
||
## Samples | ||
|
||
### Sending mail with Sendgrid | ||
|
||
View the [documentation][sendgrid_docs] or the [source code][sendgrid_code]. | ||
|
||
__Run the sample:__ | ||
|
||
1. Set the `SENDGRID_API_KEY` environment variable: | ||
|
||
export SENDGRID_API_KEY=<your-sendgrid-api-key> | ||
|
||
1. Start the server: | ||
|
||
node sendgrid | ||
|
||
1. Open http://localhost:8080 in your browser | ||
|
||
[sendgrid_docs]: https://cloud.google.com/compute/docs/tutorials/sending-mail/using-sendgrid | ||
[sendgrid_code]: sendgrid.js | ||
|
||
### Sending mail with Mailjet | ||
|
||
View the [documentation][mailjet_docs] or the [source code][mailjet_code]. | ||
|
||
__Run the sample:__ | ||
|
||
1. Set the `MAILJET_API_KEY` environment variable: | ||
|
||
export MAILJET_API_KEY=<your-mailjet-api-key> | ||
|
||
1. Set the `MAILJET_API_SECRET` environment variable: | ||
|
||
export MAILJET_API_SECRET=<your-mailjet-api-secret> | ||
|
||
1. Start the server: | ||
|
||
node mailjet | ||
|
||
1. Open http://localhost:8080 in your browser | ||
|
||
[mailjet_docs]: https://cloud.google.com/compute/docs/tutorials/sending-mail/using-mailjet | ||
[mailjet_code]: mailjet.js | ||
|
||
### Listing instances (recommended) | ||
|
||
View the [documentation][vms_docs] or the [source code][vms_code]. | ||
|
||
__Run the sample:__ | ||
|
||
node vms | ||
|
||
[vms_docs]: https://cloud.google.com/compute/docs/tutorials/nodejs-guide | ||
[vms_code]: vms.js | ||
|
||
### Listing instances | ||
|
||
View the [documentation][vms_api_docs] or the [source code][vms_api_code]. | ||
|
||
__Run the sample:__ | ||
|
||
node vms_api | ||
|
||
[vms_api_docs]: https://cloud.google.com/compute/docs/tutorials/nodejs-guide | ||
[vms_api_code]: vms_api.js | ||
|
||
## Running the tests | ||
|
||
1. Set the `GCLOUD_PROJECT` and `GOOGLE_APPLICATION_CREDENTIALS` environment | ||
variables. | ||
|
||
1. Run the tests: | ||
|
||
With `npm`: | ||
|
||
npm test | ||
|
||
With `yarn`: | ||
|
||
yarn test | ||
[client]: https://github.com/googleapis/nodejs-compute | ||
[samples]: https://github.com/googleapis/nodejs-compute/tree/master/samples |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.