Skip to content
This repository has been archived by the owner on Aug 3, 2022. It is now read-only.

Latest commit

 

History

History
56 lines (34 loc) · 1.51 KB

README.md

File metadata and controls

56 lines (34 loc) · 1.51 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. Enable billing for your project
  8. Enable the YouTube Data API c3.
  9. Create an API key.
  10. Install the Google Cloud SDK.

Run locally

  1. Clone the project:

     git clone https://github.com/googlecodelabs/cloud-cardboard-viewer.git
    
  2. Change directory into the project folder:

     cd cloud-cardboard-viewer
    
  3. Install dependencies:

     npm install
    
  4. Start the server:

     export API_KEY=YOUR_API_KEY
     npm start
    

    or

     API_KEY=YOUR_API_KEY npm start
    

    replacing YOUR_API_KEY with your API key.

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

Deploy to Google Cloud Platform

Deploy your local app

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

License

Apache Version 2.0

See LICENSE.

This is not an official Google product