Skip to content

GoogleCloudPlatform/nodejs-docs-samples

Repository files navigation

Google Cloud Platform NodeJS Samples

This repository holds Node.js samples used throughout cloud.google.com.

Build Status Coverage Status

Table of Contents

Google App Engine

This is a collection of samples and instructions to run common nodejs frameworks and applications on Google App Engine.

Google (Cloud) Products

Frameworks

Databases

Tools

Other Examples

Google BigQuery

Google Compute Engine

Google Cloud Datastore

Google Cloud Functions

Google Cloud Logging

Google Cloud Pub/Sub

Google Cloud Storage

Google Prediction API

Other Example Apps

More information

Contributing

Contributions welcome!

See CONTRIBUTING.md

Running the tests

  1. git clone git@github.com:GoogleCloudPlatform/nodejs-docs-samples.git
  2. cd nodejs-docs-samples
  3. npm install
  4. Start Redis
  5. Start Memcached
  6. Set the GCLOUD_PROJECT environment variable to id of your project
  7. Set the TEST_BUCKET_NAME environment variable to the name of a test Google Cloud Storage bucket.
  8. Set the GOOGLE_APPLICATION_CREDENTIALS environment variable to the path to a service account file. You can download one from your Google project's "permissions" page.
  9. npm test

Since the tests use AVA, you can use the --match option to run only the tests that match a provided pattern.

Run only the tests that match a pattern:

npm test -- -- --match="<pattern>"

Only run the tests for the datastore sample:

npm test -- -- --match="datastore"

Skip the tests that match a pattern:

npm test -- -- --match="!<pattern>"

Run all but the datastore tests:

npm test -- -- --match="!datastore"

Skip the tests that require Redis and Memcached:

npm test -- -- --match="express-memcached-session|redis"

License

Apache Version 2.0

See LICENSE

Releases

No releases published

Packages

No packages published

Contributors 371