项目作者: bitrockteam

项目描述 :
Deploy a Travis CI project using a Google Assistant command.
高级语言: JavaScript
项目地址: git://github.com/bitrockteam/assistant-deploy.git
创建时间: 2018-10-05T15:20:11Z
项目社区:https://github.com/bitrockteam/assistant-deploy

开源协议:MIT License

下载


assistant-deploy

Deploy a Travis CI project using a Google Assistant command.

Setup

Clone project

  1. $ git clone https://github.com/bitrockteam/assistant-deploy

Install Node.js dependencies

  1. $ yarn
  2. --- or ---
  3. $ npm install

Add a .env (you can start from .env.template) file with:

  • a Travis CI token
  • a GitHub user or org name

How it works

This project contains two main parts:

  • the real Google Assistant action defined in index.js, it needs to deployed on webserver that runs Node.js like Heroku or Now.
  • a dummy build project defined in demo.js, it should be buit by Travis CI, the output can be deployed on any webserver.

Integrate with Google Assistant

Just deploy the project to a Node.js server and set Dialogflow to forward the POST requests to the /hook endpoint.

License

Released by Bitrock under the MIT license.