Skip to content

Commit

Permalink
Merge pull request #176 from beriberikix/master
Browse files Browse the repository at this point in the history
Updated landing page
  • Loading branch information
silvolu committed Sep 5, 2014
2 parents 7c6f38f + 25df2f8 commit 9f7fd8a
Showing 1 changed file with 24 additions and 7 deletions.
31 changes: 24 additions & 7 deletions docs/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ <h1 class="logo"><img src="img/logo-full.svg" alt="Google Cloud Platform" /></h1
<div class="container clearfix">
<div class="col col-left">
<h1>gcloud</h1>
<p>Node idiomatic client for Google Cloud services.</p>
<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>
</div><!-- end of .col.col-left -->

<div class="col col-right">
Expand Down Expand Up @@ -59,23 +59,40 @@ <h2>One-line npm install</h2>
<div class="col col-left">
<h3 class="block-title">What is it?</h3>

<p>Node idiomatic client for Google Cloud services.</p>
<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>
<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>

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

<div class="col col-right">
<h4>Sample code</h4>
<h4>Retrieve Datastore Entities</h4>

<div hljs language="js">
var gcloud = require('gcloud');

var datastore = gcloud.datastore;
// new datastore.Dataset();
var dataset = new gcloud.datastore.Dataset({
projectId: 'my-project',
keyFilename: '/path/to/keyfile.json'
});

var storage = gcloud.storage;
// new storage.Bucket();</div>
dataset.get(dataset.key('Product', 123), function(err, entity) {
console.log(err || entity);
});</div>

</div><!-- end of .col.col-right -->
</div><!-- end of .container -->
</section><!-- end of .featuring -->

<section class="block">
<div class="container clearfix">
<h3 class="block-title">FAQ</h3>

<h4 class="">What is the relationship between <code>gcloud-node</code> and the <code>gcloud</code> commandline tool?</h4>
<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>

<h4 class="">What is the relationship between <code>gcloud-node</code> and the <code>Google APIs NodeJS Client</code>?</h4>
<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>

</div>
</section> <!-- end of FAQ -->
</article><!-- end of .main -->

0 comments on commit 9f7fd8a

Please sign in to comment.