Skip to content

JimTravis/nodejs-docs-samples

 
 

Repository files navigation

Google Cloud Platform NodeJS Samples

This repository holds the samples used in the nodejs documentation on cloud.google.com/nodejs.

Build Status

Google App Engine

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

Frameworks

Databases

Tools

Google Storage

Example Apps

More information

Contributing changes

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 TEST_PROJECT_ID environment variable to id of your project
  7. 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

Licensing

Apache Version 2.0

See LICENSE

About

Code samples used on cloud.google.com

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 97.8%
  • HTML 1.5%
  • CSS 0.7%