This sample demonstrates StackDriver Debugger with Node.js.
Before you can run or deploy the sample, you need to do the following (where
appropriate, replace YOUR_PROJECT_ID
with the ID of your Cloud project):
-
Refer to the appengine/README.md file for instructions on running and deploying.
-
Set the
GCLOUD_PROJECT
environment variable:Linux:
export GCLOUD_PROJECT=your-project-id
Windows:
set GCLOUD_PROJECT=your-project-id
Windows (PowerShell):
$env:GCLOUD_PROJECT="your-project-id"
-
Acquire local credentials for authenticating with Google Cloud Platform APIs:
gcloud auth application-default login
-
Configure git to use gcloud SDK:
git config credential.helper gcloud.sh
-
Add your Cloud Source Repository as a git remote:
git remote add google https://source.developers.google.com/p/YOUR_PROJECT_ID/r/default
-
Commit and push the code into the Cloud Source Repository:
git add -A && git commit -m "Initial commit" && git push --all google
-
Install dependencies:
npm install
npm start
npm run deploy
Use the Stackdriver Debugger dashboard to inspect runtime data of the app.
See Contributing.