Git Product home page Git Product logo

internet-archive-voice-apps's Introduction

Internet Archive Google Action Build Status Coverage Status

Setup Instructions

See the developer guide and release notes at https://developers.google.com/actions/ for more details.

Steps for testing with Google Assistant

Create and setup project in Actions Console

  1. Use the Actions on Google Console to add a new project with a name of your choosing and click Create Project.
  2. Click skip
  3. Go to actions under build, and click Add your first action
  4. select custom intent, then build

Create Action for the project

  1. Click CREATE (continued from above step)
  2. Go to settings and click export and import, then click restore from zip.
  3. zip the contents of models/dialogflow/ and use that zip to restore the project.

Run Local Server

Run server local with colorful logs

  1. npm install -g firebase-tools
  2. touch functions/.runtimeconfig.json and add fake keys (temporary workaround) refer this
  3. firebase init (remove .firebaserc first)
  4. firebase use --add (and choose your own firebase project)
  5. cd functions and npm install
  6. DEBUG=ia:* npm start

Expose local server

To expose server to google assistant use ngrok its free plan should be enough.

To publish 5000 port use:

ngrok http 5000

you should find url https://<id>.ngrok.io/.

Connect webhook to dialogflow

Go to the fullfillment section of your dialogflow draft copy of our app and after that you should use this url:

https://<id>.ngrok.io/<your project name>/us-central1/assistant

Setup Env

Options

  • profile performance of requests Env Variable: PROFILE_REQUESTS=true (false by default) firebase functions:config:set performance.requests=true

How to make contributions?

๐Ÿ” get one good first issue assign yourself (if you have access) or write comment that you'd like to work on this issue. That's help to prevent work overlapping.

create git branch feature/<name-of-feature>, more

๐Ÿ’ป working on it

Use Mocha for continuous checking of your code quality and cover functionality by tests

npm run mocha -- --watch

โ˜• Complete checking of code by run unit tests and code style checking

npm test

๐ŸŒŸ We follow standard javascript code style.

Automatic style fixing, it doesn't solve all problems but could be very helpful

npm run lint -- --fix

๐ŸŽ‰ Finally make Pull Request and give complete description what have you done and link the addressed issue.

Also it could be good practice to create your Pull Request earlier, but add WIP: at the beginning of its name! This way other developers could see what are you working right now.

internet-archive-voice-apps's People

Contributors

hyzhak avatar adaveinthelife avatar juliascript avatar bimlendra avatar yagyanshbhatia avatar sayak119 avatar dependabot[bot] avatar machawk1 avatar

Stargazers

Anshu avatar  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.