cloud-cardboard-viewer
cloud-cardboard-viewer copied to clipboard
Build a Node.js & Angular 2 Web App using Google Cloud Platform
cloud-cardboard-viewer
Prepare a project
- Create a Google Account if you don't have one
- Sign up for the free trial
- Create a project in the Google Cloud Platform Console.
- Open the Cloud Platform Console.
- In the dropdown menu at the top, select Create a project.
- Give your project a name
- Enable billing for your project
- Enable the YouTube Data API c3.
- Create an API key.
- Install the Google Cloud SDK.
Run locally
-
Clone the project:
git clone https://github.com/googlecodelabs/cloud-cardboard-viewer.git
-
Change directory into the project folder:
cd cloud-cardboard-viewer
-
Install dependencies:
npm install
-
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. -
View the app at http://localhost:8080.
Deploy to Google Cloud Platform
Deploy your local app
- Set
API_KEY
environment variables in theapp.yaml
file. - Run
gcloud app deploy
.
License
Apache Version 2.0
See LICENSE.
This is not an official Google product