Skip to content

Commit 7627eb2

Browse files
Merge pull request #200 from rakyll/docs
docs: gcloud-node or gcloud
2 parents 93a2a3d + fd0b9f0 commit 7627eb2

File tree

1 file changed

+43
-14
lines changed

1 file changed

+43
-14
lines changed

docs/home.html

Lines changed: 43 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ <h1 class="logo"><img src="img/logo-full.svg" alt="Google Cloud Platform" /></h1
77
<div class="container clearfix">
88
<div class="col col-left">
99
<h1>gcloud</h1>
10-
<p><code>gcloud-node</code> is the Google Cloud Client Library for Node.js - an idiomatic, intuitive, and natural way for Node.js developers to integrate with Google Cloud Platform services, like Cloud Datastore and Cloud Storage.</p>
10+
<p>Google Cloud Client Library for Node.js
11+
- an idiomatic, intuitive, and natural way for Node.js developers to
12+
integrate with Google Cloud Platform services, like Cloud Datastore
13+
and Cloud Storage.</p>
1114
</div><!-- end of .col.col-left -->
1215

1316
<div class="col col-right">
@@ -59,8 +62,20 @@ <h2>One-line npm install</h2>
5962
<div class="col col-left">
6063
<h3 class="block-title">What is it?</h3>
6164

62-
<p><code>gcloud-node</code> is a client library for accessing Google Cloud Platform services that significantly reduces the boilerplate code you have to write. The library is provides high-level API abstractions so they're easier to understand. And, it embraces idioms of Node.js, such as returning Readable streams or errors as the first object in callbacks. All this means you spend more time creating code that matters to you.</p>
63-
<p><code>gcloud-node</code> is configured to access Google Cloud services and authorize (OAuth2) automatically on your behalf. With a one line install and a private key, you are up and ready to go. Better yet, if you are running on a Google Compute Engine instance, the one line install is enough!</p>
65+
<p><code>gcloud</code> is a client library for accessing Google
66+
Cloud Platform services that significantly reduces the boilerplate
67+
code you have to write. The library provides high-level API
68+
abstractions so they're easier to understand. It embraces
69+
idioms of Node.js, works well with the standard library, and
70+
integrates better with your codebase.
71+
All this means you spend more time creating code that matters
72+
to you.</p>
73+
74+
<p><code>gcloud</code> is configured to access Google Cloud
75+
services and authorize (OAuth 2.0) automatically on your behalf.
76+
With a one-line install and a private key, you are up and ready
77+
to go. Better yet, if you are running on a Google Compute Engine
78+
instance, the one-line install is enough!</p>
6479

6580
</div><!-- end of .col.col-left -->
6681

@@ -70,13 +85,13 @@ <h4>Retrieve Datastore Entities</h4>
7085
<div hljs language="js">
7186
var gcloud = require('gcloud');
7287

73-
var dataset = new gcloud.datastore.Dataset({
88+
var ds = new gcloud.datastore.Dataset({
7489
projectId: 'my-project',
7590
keyFilename: '/path/to/keyfile.json'
7691
});
7792

78-
dataset.get(dataset.key('Product', 123), function(err, entity) {
79-
console.log(err || entity);
93+
ds.get(ds.key('Product', 123), function(err, entity) {
94+
console.log(err, entity);
8095
});</div>
8196

8297
</div><!-- end of .col.col-right -->
@@ -85,14 +100,28 @@ <h4>Retrieve Datastore Entities</h4>
85100

86101
<section class="block">
87102
<div class="container clearfix">
88-
<h3 class="block-title">FAQ</h3>
89-
90-
<h4 class="">What is the relationship between <code>gcloud-node</code> and the <code>gcloud</code> commandline tool?</h4>
91-
<p>Both the <code>gcloud</code> commandline tool and <code>gcloud-node</code> are part of the Google Cloud SDK: a collection of tools and libraries that enable you to easily create and manage resources on Google Cloud Platform. The <code>gcloud</code> commandline tool can be used to manage both your development workflow and your Google Cloud Platform resources while <code>gcloud-node</code> is the Google Cloud Client Library for Node.js.</p>
92-
93-
<h4 class="">What is the relationship between <code>gcloud-node</code> and the <code>Google APIs NodeJS Client</code>?</h4>
94-
<p>The <code>Google APIs NodeJS Client</code> is a client library for using the broad set of Google APIs. <code>gcloud-node</code> is built specifically for the Google Cloud Platform and is the recommended way to integrate Google Cloud APIs into your Node.js applications. If your application requires both Google Cloud and other Google APIs, the 2 libraries may be used by your application.</p>
95-
103+
<h3 class="block-title">FAQ</h3>
104+
105+
<h4>What is the relationship <code>gcloud</code> package
106+
and the <code>gcloud</code> command-line tool?</h4>
107+
<p>Both the <code>gcloud</code> command-line tool and
108+
<code>gcloud</code> package are a part of the Google Cloud SDK: a collection
109+
of tools and libraries that enable you to easily create and manage
110+
resources on the Google Cloud Platform. The <code>gcloud</code> command-line
111+
tool can be used to manage both your development workflow and your
112+
Google Cloud Platform resources while the <code>gcloud</code> package is the
113+
Google Cloud Client Library for Node.js.</p>
114+
115+
<h4>What is the relationship between <code>gcloud</code>
116+
and the Google APIs Node.js Client?</h4>
117+
<p>The <a href="https://github.com/google/google-api-nodejs-client">
118+
Google APIs Node.js Client</a> is a client library for
119+
using the broad set of Google APIs.
120+
<code>gcloud</code> is built specifically for the Google Cloud Platform
121+
and is the recommended way to integrate Google Cloud APIs into your
122+
Node.js applications. If your application requires both Google Cloud and
123+
other Google APIs, the 2 libraries may be used by your application.</p>
124+
96125
</div>
97126
</section> <!-- end of FAQ -->
98127
</article><!-- end of .main -->

0 commit comments

Comments
 (0)