Skip to content

Latest commit

 

History

History
280 lines (199 loc) · 13.4 KB

README.md

File metadata and controls

280 lines (199 loc) · 13.4 KB

Google Cloud Platform NodeJS Samples

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

Build 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 Cloud Datastorem

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 [email protected]: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 GOOGLE_APPLICATION_CREDENTIALS environment variable to the path to a service account file. You can download one from your Google project's "permissions" page.
  8. npm test

Since the tests use Mocha.js, you can use the --grep option to run only the tests that match a provided pattern. The --invert option causes the matched tests to be excluded instead of included.

Run only the tests that match a pattern:

npm test -- -- --grep <pattern>

Only run the tests for the datastore sample:

npm test -- -- --grep datastore

Skip the tests that match a pattern:

npm test -- -- --grep <pattern> --invert

Run all but the datastore tests:

npm test -- -- --grep datastore --invert

Skip the tests that require Redis and Memcached:

npm test -- -- --grep "express-memcached-session|redis" --invert

License

Apache Version 2.0

See LICENSE