GithubHelp home page GithubHelp logo

isabella232 / actions-builder-canvas-angular Goto Github PK

View Code? Open in Web Editor NEW

This project forked from actions-on-google/actions-builder-canvas-angular

0.0 0.0 0.0 302 KB

License: Apache License 2.0

JavaScript 5.71% HTML 16.81% TypeScript 69.00% CSS 8.48%

actions-builder-canvas-angular's Introduction

Actions on Google: Interactive Canvas with Angular Sample

This is an Interactive Canvas sample which lets one browse and view video lectures by navigating with voice commands.

The frontend is built with Angular and shows how to build a Canvas action using Angular.

This Action benefits from a visually rich experience that allows you to provide video content combined with an intuitive conversational flow for users where existing visual components are not sufficient.

List of courses Video lecture

Prerequisites

  1. Node.js and NPM
  2. Install the Firebase CLI
    • We recommend using MAJOR version 8 , npm install -g firebase-tools@^8.0.0
    • Run firebase login with your Google account

Setup

Actions Console

  1. From the Actions on Google Console, New project > Create project > under What kind of Action do you want to build? > Game > Blank project for smart display
    • Take note of the project ID, as this will be used later in the setup.

Firebase Hosting Deployment

  1. Run npm install to install dependencies
  2. Run npm run build to generate a build of the web app
  3. Run firebase deploy --project {PROJECT_ID} --only hosting to deploy the web app to Firebase Hosting
    • To find your Project ID: In the Actions Console console for your project, navigate to ⋮ > Project settings > Project ID.

Actions CLI

  1. Install the Actions CLI
  2. Navigate to sdk/settings/settings.yaml, and replace <PROJECT_ID> with your project ID
  3. Navigate to sdk/custom/global/actions.intent.MAIN.yaml, and replace <PROJECT_ID> with your project ID
  4. Navigate to sdk/scenes/Main.yaml, and replace <PROJECT_ID> with your project ID
  5. Navigate to the sdk/ directory by running cd sdk from the root directory of this project.
  6. Run gactions login to login to your account.
  7. Run gactions push to push your project.
  8. Run gactions deploy preview to deploy your project.

Running this Sample

  • You can test your Action on any Google Assistant-enabled device on which the Assistant is signed into the same account used to create this project. Just say or type, “OK Google, talk to my test app”.
  • You can also use the Actions on Google Console simulator to test most features and preview on-device behavior.

Using this Sample

  • You can say navigate the lists by giving the ordinal of the item, ie. "First item" or "Give me the second".
  • You can return to the previous list by saying "Go back" or "Previous".

References & Issues

Contributing

Please read and follow the steps in the CONTRIBUTING.md.

License

See LICENSE.

actions-builder-canvas-angular's People

Contributors

fleker avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.