Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 1.57 KB

README.md

File metadata and controls

41 lines (28 loc) · 1.57 KB

cloud-cardboard-viewer

Prepare a project

  1. Create a Google Account if you don't have one
  2. Sign up for the free trial
  3. Create a project in the Google Cloud Platform Console.
  4. Open the Cloud Platform Console.
  5. In the dropdown menu at the top, select Create a project.
  6. Give your project a name
  7. Make note of the projectId, which might be different from the project name. The projectId is used in commands and configurations.
  8. Enable billing for your project
  9. Enable the Stackdriver Trace API.
  10. Enable the YouTube Data API c3.
  11. Create an API Key.

Run locally

  1. git clone https://github.com/googlecodelabs/cloud-cardboard-viewer.git
  2. cd cloud-cardboard-viewer
  3. npm install
  4. API_KEY=<your-api-key> GCLOUD_PROJECT=<your-project-id> npm start

View the app at http://localhost:8080.

Deploy to Google Cloud Platform

Deploy your local app

  1. Set the GCLOUD_PROJECT and API_KEY environment variables in the app.yaml file.
  2. Run gcloud app deploy.

First deployment may take a while as your load balancer needs to be created.

License

Apache Version 2.0

See LICENSE.

This is not an official Google product