sasha7 / cloud-cardboard-viewer

Build a Node.js & Angular 2 Web App using Google Cloud Platform

Home Page:https://codelabs.developers.google.com/codelabs/cloud-cardboard-viewer/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Build a Node.js & Angular 2 Web App using Google Cloud Platform

https://codelabs.developers.google.com/codelabs/cloud-cardboard-viewer/

License:Apache License 2.0


Languages

Language:TypeScript 50.4%Language:JavaScript 23.5%Language:CSS 13.9%Language:HTML 12.2%