Skip to content

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

About

Node.js code samples used on https://cloud.google.com

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 97.3%
  • HTML 2.0%
  • CSS 0.7%