Skip to content

Ramiro1613/nodejs-docs-samples

 
 

Repository files navigation

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 Datastore

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 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

About

Node.js samples for Google Cloud Platform products.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.4%
  • Other 1.6%